This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8488: invalid reference cast being accepted with -pedantic on
- From: mrnobo1024 at yahoo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 7 Nov 2002 06:04:04 -0000
- Subject: c++/8488: invalid reference cast being accepted with -pedantic on
- Reply-to: mrnobo1024 at yahoo dot com
>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: