summaryrefslogtreecommitdiff
path: root/gcc/cp/operators.def
diff options
context:
space:
mode:
authorneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-11 23:01:53 +0000
committerneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-11 23:01:53 +0000
commit4a70b59065b081b92b1605d3d1a6975a58317420 (patch)
tree5e45f532ff7e7c0b2bcfec1f846d912a378cf573 /gcc/cp/operators.def
parent0bbceaf63f45c7589d38327726c78ff25382bc7f (diff)
downloadgcc-4a70b59065b081b92b1605d3d1a6975a58317420.tar.gz
PR c++/11437
* operators.def: Add definitions for __imag__, __real__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/operators.def')
-rw-r--r--gcc/cp/operators.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/operators.def b/gcc/cp/operators.def
index b4de745a154..16e603d31bf 100644
--- a/gcc/cp/operators.def
+++ b/gcc/cp/operators.def
@@ -93,8 +93,10 @@ DEF_SIMPLE_OPERATOR ("!", TRUTH_NOT_EXPR, "nt", 1)
DEF_SIMPLE_OPERATOR ("++", PREINCREMENT_EXPR, "pp", 1)
DEF_SIMPLE_OPERATOR ("--", PREDECREMENT_EXPR, "mm", 1)
DEF_SIMPLE_OPERATOR ("sizeof", SIZEOF_EXPR, "sz", 1)
-/* This is an extension. */
+/* These are extensions. */
DEF_SIMPLE_OPERATOR ("alignof", ALIGNOF_EXPR, "v17alignof", 1)
+DEF_SIMPLE_OPERATOR ("__imag__", IMAGPART_EXPR, "v18__imag__", 1)
+DEF_SIMPLE_OPERATOR ("__real__", REALPART_EXPR, "v18__real__", 1)
/* The cast operator. */
DEF_SIMPLE_OPERATOR ("", TYPE_EXPR, "cv", 1)