c++/8488: invalid reference cast being accepted with -pedantic on

mrnobo1024@yahoo.com mrnobo1024@yahoo.com
Wed Nov 6 22:06:00 GMT 2002


>Number:         8488
>Category:       c++
>Synopsis:       invalid reference cast being accepted with -pedantic on
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 06 22:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     mrnobo1024@yahoo.com
>Release:        unknown-1.0
>Organization:
>Environment:
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --
target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=f77,c++,o
bjc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)
>Description:
"(int &)3 = 2;" gives the fatal error "conversion to non-const reference type `int&' from rvalue of type `int'" normally, but with -pedantic, it becomes a warning and compilation continues.
>How-To-Repeat:

>Fix:

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



More information about the Gcc-prs mailing list