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]

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


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