This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/1920: g++ -O1 optimization bug in casting a reference argument
- From: "Martin v. Löwis" <martin at v dot loewis dot de>
- To: mdejong at redhat dot com, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sun, 29 Dec 2002 00:02:26 +0100
- Subject: Re: c++/1920: g++ -O1 optimization bug in casting a reference argument
Notice that the extension from (gcc)Lvalues explicitly rules out taking
the address of a cast lvalue. Following the rationale for this
restriction, I believe the extension should also not allow passing a
cast lvalue as a reference. In addition, -pedantic should produce
diagnostics if the extension is used.
Regards,
Martin