public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47242] New: [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function
@ 2011-01-10 12:51 zsojka at seznam dot cz
2011-01-11 15:45 ` [Bug c++/47242] " paolo.carlini at oracle dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-10 12:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47242
Summary: [C++0x] ICE: tree check: expected field_decl, have
error_mark in build_lambda_object, at
cp/semantics.c:7604 on invalid lambda function
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 22937
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22937
reduced testcase
Compiler output:
$ gcc -std=c++0x pr47242.C
pr47242.C: In function 'void bar()':
pr47242.C:6:4: error: 'i' was not declared in this scope
pr47242.C: In function 'void bar() [with <template-parameter-1-1> = int]':
pr47242.C:12:12: instantiated from here
pr47242.C:6:3: error: using invalid field 'bar()::<lambda()>::__i'
pr47242.C:6:3: internal compiler error: tree check: expected field_decl, have
error_mark in build_lambda_object, at cp/semantics.c:7604
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r168618 - crash
4.5 r168062 - crash
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/47242] [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function
2011-01-10 12:51 [Bug c++/47242] New: [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function zsojka at seznam dot cz
@ 2011-01-11 15:45 ` paolo.carlini at oracle dot com
2011-02-23 0:38 ` paolo at gcc dot gnu.org
2011-02-23 0:55 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-01-11 15:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47242
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.01.11 15:42:30
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-01-11 15:42:30 UTC ---
Seems easy.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/47242] [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function
2011-01-10 12:51 [Bug c++/47242] New: [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function zsojka at seznam dot cz
2011-01-11 15:45 ` [Bug c++/47242] " paolo.carlini at oracle dot com
@ 2011-02-23 0:38 ` paolo at gcc dot gnu.org
2011-02-23 0:55 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-02-23 0:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47242
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-02-23 00:37:46 UTC ---
Author: paolo
Date: Wed Feb 23 00:37:43 2011
New Revision: 170423
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170423
Log:
/cp
2011-02-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47242
* semantics.c (build_lambda_object): Bail out if a field is
error_mark_node.
/testsuite
2011-02-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47242
* g++.dg/cpp0x/lambda/lambda-ice4.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/47242] [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function
2011-01-10 12:51 [Bug c++/47242] New: [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function zsojka at seznam dot cz
2011-01-11 15:45 ` [Bug c++/47242] " paolo.carlini at oracle dot com
2011-02-23 0:38 ` paolo at gcc dot gnu.org
@ 2011-02-23 0:55 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-02-23 0:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47242
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-02-23 00:38:52 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-23 0:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10 12:51 [Bug c++/47242] New: [C++0x] ICE: tree check: expected field_decl, have error_mark in build_lambda_object, at cp/semantics.c:7604 on invalid lambda function zsojka at seznam dot cz
2011-01-11 15:45 ` [Bug c++/47242] " paolo.carlini at oracle dot com
2011-02-23 0:38 ` paolo at gcc dot gnu.org
2011-02-23 0:55 ` 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).