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]

c++/6859: g++ 3.1 fails to diagnose an rvalue to lvalue conversion



>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:


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