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
* [Bug c++/46159] [4.5/4.6 Regression] Bogus warning about lambdas
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 ` pinskia at gcc dot gnu.org
2010-11-12 14:31 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-10-27 21:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.27 21:02:56
Target Milestone|--- |4.5.2
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-27 21:02:56 UTC ---
Confirmed. Looks like there might be some ambiguous in the parsing with
lambda's.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5/4.6 Regression] Bogus warning about lambdas
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
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-12 14:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5/4.6 Regression] Bogus warning about lambdas
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
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-12-16 13:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.2 |4.5.3
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-12-16 13:03:23 UTC ---
GCC 4.5.2 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5/4.6 Regression] Bogus warning about lambdas
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
` (2 preceding siblings ...)
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
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-02-08 22:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schaub.johannes at
| |googlemail dot com
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-02-08 22:31:12 UTC ---
*** Bug 47651 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5/4.6 Regression] Bogus warning about lambdas
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
` (3 preceding siblings ...)
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
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-01 22:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5/4.6 Regression] Bogus warning about lambdas
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
` (4 preceding siblings ...)
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
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-02 18:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-02 18:18:48 UTC ---
Author: jason
Date: Wed Mar 2 18:18:41 2011
New Revision: 170621
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170621
Log:
PR c++/46159
* parser.c (cp_parser_primary_expression): Don't warn about a
failed tentative parse.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-98.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5 Regression] Bogus warning about lambdas
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
` (5 preceding siblings ...)
2011-03-02 18:19 ` jason at gcc dot gnu.org
@ 2011-03-02 18:22 ` 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
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-02 18:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.6.0
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Summary|[4.5/4.6 Regression] Bogus |[4.5 Regression] Bogus
|warning about lambdas |warning about lambdas
Known to fail| |4.5.2
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-02 18:22:45 UTC ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5 Regression] Bogus warning about lambdas
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
` (6 preceding siblings ...)
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
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-02 18:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-02 18:46:04 UTC ---
Author: jason
Date: Wed Mar 2 18:46:01 2011
New Revision: 170622
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170622
Log:
PR c++/46159
* parser.c (cp_parser_primary_expression): Don't warn about a
failed tentative parse.
Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-98.C
Modified:
branches/gcc-4_5-branch/gcc/cp/ChangeLog
branches/gcc-4_5-branch/gcc/cp/parser.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/46159] [4.5 Regression] Bogus warning about lambdas
2010-10-24 22:08 [Bug c++/46159] New: [4.5/4.6 Regression] Bogus warning about lambdas jsm28 at gcc dot gnu.org
` (7 preceding siblings ...)
2011-03-02 18:46 ` jason at gcc dot gnu.org
@ 2011-03-02 18:48 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-02 18:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46159
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-02 18:48:04 UTC ---
Fixed in 4.5 as well.
^ 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).