public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54891] New: [C++11] lambda-expression and explicit type conversion (cast notation)
@ 2012-10-10 15:20 ai.azuma at gmail dot com
2013-05-21 0:05 ` [Bug c++/54891] " paolo.carlini at oracle dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: ai.azuma at gmail dot com @ 2012-10-10 15:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54891
Bug #: 54891
Summary: [C++11] lambda-expression and explicit type conversion
(cast notation)
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ai.azuma@gmail.com
Created attachment 28413
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28413
Output of -v option and preprocessed file
The following valid code is rejected by GCC 4.8.0 20121007, 4.7.3 20121006 and
4.6.4 20121005.
/////////////
int main()
{
(void)[]{};
}
/////////////
For the above code, GCC 4.8.0 20121007 says;
main.cpp: In function 'int main()':
main.cpp:3:4: error: expected primary-expression before 'void'
(void)[]{};
^
main.cpp:3:4: error: expected ')' before 'void'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/54891] [C++11] lambda-expression and explicit type conversion (cast notation)
2012-10-10 15:20 [Bug c++/54891] New: [C++11] lambda-expression and explicit type conversion (cast notation) ai.azuma at gmail dot com
@ 2013-05-21 0:05 ` paolo.carlini at oracle dot com
2014-06-29 20:15 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-21 0:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54891
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-05-21
Blocks| |54367
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/54891] [C++11] lambda-expression and explicit type conversion (cast notation)
2012-10-10 15:20 [Bug c++/54891] New: [C++11] lambda-expression and explicit type conversion (cast notation) ai.azuma at gmail dot com
2013-05-21 0:05 ` [Bug c++/54891] " paolo.carlini at oracle dot com
@ 2014-06-29 20:15 ` paolo.carlini at oracle dot com
2014-06-30 18:31 ` paolo at gcc dot gnu.org
2014-06-30 18:32 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-29 20:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54891
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/54891] [C++11] lambda-expression and explicit type conversion (cast notation)
2012-10-10 15:20 [Bug c++/54891] New: [C++11] lambda-expression and explicit type conversion (cast notation) ai.azuma at gmail dot com
2013-05-21 0:05 ` [Bug c++/54891] " paolo.carlini at oracle dot com
2014-06-29 20:15 ` paolo.carlini at oracle dot com
@ 2014-06-30 18:31 ` paolo at gcc dot gnu.org
2014-06-30 18:32 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-06-30 18:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54891
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Jun 30 18:30:50 2014
New Revision: 212162
URL: https://gcc.gnu.org/viewcvs?rev=212162&root=gcc&view=rev
Log:
/cp
2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54891
* parser.c (cp_parser_tokens_start_cast_expression): In C++11
a '[' can also start a primary-expression.
(cp_parser_cast_expression): Parse a cast-expression only tentatively
when cp_parser_tokens_start_cast_expression returns -1.
/testsuite
2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/54891
* g++.dg/cpp0x/lambda/lambda-cast1.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-cast1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/54891] [C++11] lambda-expression and explicit type conversion (cast notation)
2012-10-10 15:20 [Bug c++/54891] New: [C++11] lambda-expression and explicit type conversion (cast notation) ai.azuma at gmail dot com
` (2 preceding siblings ...)
2014-06-30 18:31 ` paolo at gcc dot gnu.org
@ 2014-06-30 18:32 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-30 18:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54891
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org
Target Milestone|--- |4.10.0
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.10.0.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-30 18:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10 15:20 [Bug c++/54891] New: [C++11] lambda-expression and explicit type conversion (cast notation) ai.azuma at gmail dot com
2013-05-21 0:05 ` [Bug c++/54891] " paolo.carlini at oracle dot com
2014-06-29 20:15 ` paolo.carlini at oracle dot com
2014-06-30 18:31 ` paolo at gcc dot gnu.org
2014-06-30 18:32 ` paolo.carlini at oracle dot com
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).