c++/5452: The following code compiles. Why? MSVC++6 does not.

p.klotz@icoserve.com p.klotz@icoserve.com
Tue Jan 22 05:36:00 GMT 2002


>Number:         5452
>Category:       c++
>Synopsis:       The following code compiles. Why? MSVC++6 does not.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 22 05:36:05 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     p.klotz@icoserve.com
>Release:        unknown-1.0
>Organization:
>Environment:
Red Hat Linux, gcc 3.0.2
>Description:
#include <string>

int main(void)
{
    +"/"+std::string("/");
    return 0;
}
>How-To-Repeat:
g++ -W -Wall prg.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list