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++/54053] New: g++ accepts (invalid?) ""0; expression.


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

             Bug #: 54053
           Summary: g++ accepts (invalid?) ""0; expression.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net


g++ -std=c++11 compiles following code w/o errors.

#include <iostream>
int main()
{
        std::cout << ""0;
}

while comeau/clang reports syntax error:

t.cpp:5:17: error: expected ';' after expression
        std::cout << ""0;
                       ^
                       ;


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