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++/13536] New: [3.4 regression] parse error when parenthesized construction-style cast contains old-style cast


The following expression:

  return (int((char*)0));

yields the following errors on the gcc mainline:

$ /usr/local/gcc-3.4-20031231/bin/g++ parse.cpp                                
                                               
parse.cpp: In function `int main()':
parse.cpp:3: error: expected `)'
parse.cpp:3: error: expected `)'
parse.cpp:3: error: expected `;'
parse.cpp:3: error: expected primary-expression before ')' token
parse.cpp:3: error: expected `;'

It worked fine on the mainline on 20031002.

-- 
           Summary: [3.4 regression] parse error when parenthesized
                    construction-style cast contains old-style cast
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dbaron at dbaron dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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