public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas @ 2012-08-14 11:52 linesprower at gmail dot com 2012-08-14 12:00 ` [Bug c++/54250] " redi at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: linesprower at gmail dot com @ 2012-08-14 11:52 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54250 Bug #: 54250 Summary: Segmentation fault when decltype of a struct field is used in nested lambdas Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: linesprower@gmail.com // this code causes segmentation fault during compilation // compiled with: g++ -std=c++0x // compiler version: 4.6.2 // note: uncommenting 'this' fixes the problem struct T { int a; int foo() { return [&]()->int { return [&](decltype(/*this->*/a) _)->int { return 1; }(a); }(); } }; int main() { return 0; } ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54250] Segmentation fault when decltype of a struct field is used in nested lambdas 2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com @ 2012-08-14 12:00 ` redi at gcc dot gnu.org 2012-08-15 21:15 ` daniel.kruegler at googlemail dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2012-08-14 12:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54250 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2012-08-14 Ever Confirmed|0 |1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54250] Segmentation fault when decltype of a struct field is used in nested lambdas 2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com 2012-08-14 12:00 ` [Bug c++/54250] " redi at gcc dot gnu.org @ 2012-08-15 21:15 ` daniel.kruegler at googlemail dot com 2014-03-18 16:42 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: daniel.kruegler at googlemail dot com @ 2012-08-15 21:15 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54250 Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-08-15 21:15:16 UTC --- The problem still exists in gcc 4.8.trunk. Version 4.8.0 20120729 (experimental) delivers: 7|internal compiler error: vector VEC(tree,base) index domain error, in insert_capture_proxy at cp/semantics.c:8974 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54250] Segmentation fault when decltype of a struct field is used in nested lambdas 2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com 2012-08-14 12:00 ` [Bug c++/54250] " redi at gcc dot gnu.org 2012-08-15 21:15 ` daniel.kruegler at googlemail dot com @ 2014-03-18 16:42 ` paolo.carlini at oracle dot com 2014-03-18 17:11 ` paolo at gcc dot gnu.org 2014-03-18 17:11 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2014-03-18 16:42 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54250 --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> --- This is fixed in mainline and 4.8.2, and I'm adding the testcase and closing the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54250] Segmentation fault when decltype of a struct field is used in nested lambdas 2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com ` (2 preceding siblings ...) 2014-03-18 16:42 ` paolo.carlini at oracle dot com @ 2014-03-18 17:11 ` paolo at gcc dot gnu.org 2014-03-18 17:11 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo at gcc dot gnu.org @ 2014-03-18 17:11 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54250 --- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Tue Mar 18 17:10:23 2014 New Revision: 208658 URL: http://gcc.gnu.org/viewcvs?rev=208658&root=gcc&view=rev Log: 2014-03-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60305 * g++.dg/cpp0x/constexpr-ice14.C: New. 2014-03-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54250 * g++.dg/cpp0x/lambda/lambda-ice12.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ice14.C trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice12.C Modified: trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54250] Segmentation fault when decltype of a struct field is used in nested lambdas 2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com ` (3 preceding siblings ...) 2014-03-18 17:11 ` paolo at gcc dot gnu.org @ 2014-03-18 17:11 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2014-03-18 17:11 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54250 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Known to work| |4.8.2, 4.9.0 Resolution|--- |FIXED --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-18 17:11 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-14 11:52 [Bug c++/54250] New: Segmentation fault when decltype of a struct field is used in nested lambdas linesprower at gmail dot com 2012-08-14 12:00 ` [Bug c++/54250] " redi at gcc dot gnu.org 2012-08-15 21:15 ` daniel.kruegler at googlemail dot com 2014-03-18 16:42 ` paolo.carlini at oracle dot com 2014-03-18 17:11 ` paolo at gcc dot gnu.org 2014-03-18 17:11 ` 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).