This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32041] [4.3/4.4 Regression] offsetof buglet



------- Comment #4 from jakub at gcc dot gnu dot org  2009-01-12 19:44 -------
Subject: Bug 32041

Author: jakub
Date: Mon Jan 12 19:44:33 2009
New Revision: 143305

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143305
Log:
        PR c/32041
        * c-parser.c (c_parser_postfix_expression): Allow `->' in
        offsetof member-designator, handle it as `[0].'.

        * parser.c (cp_parser_builtin_offsetof): Allow `->' in
        offsetof member-designator, handle it as `[0].'.

        * gcc.dg/pr32041.c: New test.
        * g++.dg/parse/offsetof9.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/offsetof9.C
    trunk/gcc/testsuite/gcc.dg/pr32041.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32041


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]