This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/6859: g++ 3.1 fails to diagnose an rvalue to lvalue conversion
- From: sebor at roguewave dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 29 May 2002 19:07:54 -0000
- Subject: c++/6859: g++ 3.1 fails to diagnose an rvalue to lvalue conversion
- Reply-to: sebor at roguewave dot com
>Number: 6859
>Category: c++
>Synopsis: g++ 3.1 fails to diagnose an rvalue to lvalue conversion
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 29 12:16:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: sebor@roguewave.com
>Release: gcc 3.1
>Organization:
>Environment:
>Description:
The program below is ill-formed and should be diagnosed.
>How-To-Repeat:
$ cat t.cpp ; g++ --version ; g++ -c -pedantic t.cpp
void foo (char*&);
int main ()
{
signed char *s;
foo (reinterpret_cast<char*>(s));
}
g++ (GCC) 3.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: