public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/54798] New: internal compiler error: Segmentation fault @ 2012-10-03 19:42 gcc at boxie dot eu 2012-10-03 19:44 ` [Bug c++/54798] " gcc at boxie dot eu ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: gcc at boxie dot eu @ 2012-10-03 19:42 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798 Bug #: 54798 Summary: internal compiler error: Segmentation fault Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: gcc@boxie.eu Created attachment 28343 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28343 test case I'm getting an internal compiler error both on gcc 4.7.0 on Ubuntu 12.04.1 and an MinGW-w64 gcc 4.7.2 for Windows. A reduced source test case is attached. The error does not occur as soon as I use the captured this pointer. Output is as follows: $ g++ -std=c++11 ice.cpp -o ice ice.cpp: In lambda function: ice.cpp:47:24: internal compiler error: Segmentation fault ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54798] internal compiler error: Segmentation fault 2012-10-03 19:42 [Bug c++/54798] New: internal compiler error: Segmentation fault gcc at boxie dot eu @ 2012-10-03 19:44 ` gcc at boxie dot eu 2012-10-03 20:01 ` gcc at boxie dot eu ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: gcc at boxie dot eu @ 2012-10-03 19:44 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798 --- Comment #1 from gcc at boxie dot eu 2012-10-03 19:44:05 UTC --- Errr.. "The error DOES occur as soon as I use the captured this pointer." ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54798] internal compiler error: Segmentation fault 2012-10-03 19:42 [Bug c++/54798] New: internal compiler error: Segmentation fault gcc at boxie dot eu 2012-10-03 19:44 ` [Bug c++/54798] " gcc at boxie dot eu @ 2012-10-03 20:01 ` gcc at boxie dot eu 2012-10-03 21:20 ` daniel.kruegler at googlemail dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: gcc at boxie dot eu @ 2012-10-03 20:01 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798 --- Comment #2 from gcc at boxie dot eu 2012-10-03 20:01:32 UTC --- Created attachment 28345 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28345 minimal test case I further reduce the test case to a minimum. The ICE only happens if the nested class is a template. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54798] internal compiler error: Segmentation fault 2012-10-03 19:42 [Bug c++/54798] New: internal compiler error: Segmentation fault gcc at boxie dot eu 2012-10-03 19:44 ` [Bug c++/54798] " gcc at boxie dot eu 2012-10-03 20:01 ` gcc at boxie dot eu @ 2012-10-03 21:20 ` daniel.kruegler at googlemail dot com 2012-10-03 21:42 ` gcc at boxie dot eu 2012-10-03 23:53 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: daniel.kruegler at googlemail dot com @ 2012-10-03 21:20 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798 Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-10-03 21:20:01 UTC --- This happens also with gcc 4.8 HEAD. Further simplifications and removal of library dependencies: //------- void use(int){} template <typename U> class C { public: void f() { [&]() { use(_member); }(); } private: int _member; }; //------- After this reduction it looks like a dup of bug 53921 to me. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54798] internal compiler error: Segmentation fault 2012-10-03 19:42 [Bug c++/54798] New: internal compiler error: Segmentation fault gcc at boxie dot eu ` (2 preceding siblings ...) 2012-10-03 21:20 ` daniel.kruegler at googlemail dot com @ 2012-10-03 21:42 ` gcc at boxie dot eu 2012-10-03 23:53 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: gcc at boxie dot eu @ 2012-10-03 21:42 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798 --- Comment #4 from Christian Maaser <gcc at boxie dot eu> 2012-10-03 21:42:30 UTC --- True, looks like the same bug. My workaround was to define "auto self = this;" outside the lambda function, but using "this->" bypasses the issue as well. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/54798] internal compiler error: Segmentation fault 2012-10-03 19:42 [Bug c++/54798] New: internal compiler error: Segmentation fault gcc at boxie dot eu ` (3 preceding siblings ...) 2012-10-03 21:42 ` gcc at boxie dot eu @ 2012-10-03 23:53 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2012-10-03 23:53 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-03 23:53:39 UTC --- Dup. *** This bug has been marked as a duplicate of bug 53921 *** ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-03 23:53 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-10-03 19:42 [Bug c++/54798] New: internal compiler error: Segmentation fault gcc at boxie dot eu 2012-10-03 19:44 ` [Bug c++/54798] " gcc at boxie dot eu 2012-10-03 20:01 ` gcc at boxie dot eu 2012-10-03 21:20 ` daniel.kruegler at googlemail dot com 2012-10-03 21:42 ` gcc at boxie dot eu 2012-10-03 23:53 ` 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).