aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2006-01-06 20:50:39 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2006-01-06 20:50:39 +0000
commit93846d56e1624d1bb34da982aa270768eaec8c32 (patch)
tree965e1500837be0e7b9a0607bd877633e7b31d04a
parent84be0a79a871c4fdb6af0439940ed48e7dba461b (diff)
downloadgcc-93846d56e1624d1bb34da982aa270768eaec8c32.zip
gcc-93846d56e1624d1bb34da982aa270768eaec8c32.tar.gz
gcc-93846d56e1624d1bb34da982aa270768eaec8c32.tar.bz2
parser.c (cp_parser_primary_expression): Document the grammar for the built-in offsetof, a GNU extension.
* parser.c (cp_parser_primary_expression): Document the grammar for the built-in offsetof, a GNU extension. From-SVN: r109431
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e487339..0680fed 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-06 Gabriel Dos Reis <gdr@integrablesolutions.net>
+
+ * parser.c (cp_parser_primary_expression): Document the grammar
+ for the built-in offsetof, a GNU extension.
+
2005-01-04 Zdenek Dvorak <dvorakz@suse.cz>
PR c++/25632
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 13aa29a..637e183 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -2747,6 +2747,7 @@ cp_parser_translation_unit (cp_parser* parser)
primary-expression:
( compound-statement )
__builtin_va_arg ( assignment-expression , type-id )
+ __builtin_offsetof ( type-id , offsetof-expression )
Objective-C++ Extension: