public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas
@ 2010-10-24 22:08 jsm28 at gcc dot gnu.org
  2010-10-27 21:03 ` [Bug c++/46159] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2010-10-24 22:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159

           Summary: [4.5/4.6 Regression] Bogus warning about lambdas
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jsm28@gcc.gnu.org


The following C++ code

void
f()
{
  int **p = new(int(*[2]));
}

gets what seems to be a bogus diagnostic from 4.5 and 4.6:

t.C: In function 'void f()':
t.C:4:21: warning: lambda expressions only available with -std=c++0x or
-std=gnu++0x [enabled by default]

As far as I know this is valid C++98/C++03 code, not involving a lambda.  4.4
accepts it with no diagnostic.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-02 18:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
2010-10-27 21:03 ` [Bug c++/46159] " pinskia at gcc dot gnu.org
2010-11-12 14:31 ` rguenth at gcc dot gnu.org
2010-12-16 13:19 ` rguenth at gcc dot gnu.org
2011-02-08 22:31 ` pinskia at gcc dot gnu.org
2011-03-01 22:57 ` jason at gcc dot gnu.org
2011-03-02 18:19 ` jason at gcc dot gnu.org
2011-03-02 18:22 ` [Bug c++/46159] [4.5 " jakub at gcc dot gnu.org
2011-03-02 18:46 ` jason at gcc dot gnu.org
2011-03-02 18:48 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).