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++/13529] [3.4 regression] offsetof() with member-designator containing member access broken


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-01 00:32 -------
Confirmed, looks like Mark forgot about the dot operator when he did this patch:
2003-12-16  Mark Mitchell  <mark@codesourcery.com>

        PR c++/13275
        * lex.c (reswords): Add "__offsetof" and "__offsetof__".
        * parser.c (cp_parser): Add in_offsetof_p.
        (cp_parser_new): Initialize it.
        (cp_parser_primary_expression): Handle __offsetof__ (...).
        (cp_parser_postfix_expression): Allow casts to pointer type and
        uses of "->" in a constant expression if implementing offsetof.
        (cp_parser_unary_expression): Allow the use of "&" in a constant
        expression if implementing offsetof.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-01 00:32:13
               date|                            |
   Target Milestone|---                         |3.4.0


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


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