]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
parser.c (cp_parser_primary_expression): Document the grammar for the built-in offset...
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Fri, 6 Jan 2006 20:50:39 +0000 (20:50 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 6 Jan 2006 20:50:39 +0000 (20:50 +0000)
        * parser.c (cp_parser_primary_expression): Document the grammar
        for the built-in offsetof, a GNU extension.

From-SVN: r109431

gcc/cp/ChangeLog
gcc/cp/parser.c

index e4873392fbe4dad71ea4656a73d93ce6da1e4eaf..0680fed17ecc9402d61ef9dca9bfc50fb5339af4 100644 (file)
@@ -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
index 13aa29a08559f5688da9f88e526945c479ce6691..637e183946a5af2a2bfa1e1cf62998628656043c 100644 (file)
@@ -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: