Bug 54502 - g++ 4.6 -std=c++0x ICE (segfault)
Summary: g++ 4.6 -std=c++0x ICE (segfault)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.6.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
: 55553 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-06 11:26 UTC by Matthias Klose
Modified: 2012-11-30 19:58 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work: 4.7.1, 4.8.0
Known to fail: 4.6.3
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2012-09-06 11:26:44 UTC
this works with 4.7 and trunk, fails with 4.6

$ cat foo.cc 
#include <deque>
int main(){
   std::deque<int[2]> y;
   y.push_back( {2,5} );
}

$ g++-4.6 -std=c++0x foo.cc 
foo.cc: In function 'int main()':
foo.cc:4:23: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
Comment 1 Paolo Carlini 2012-09-06 12:12:48 UTC
I bet we have a duplicate. Fixed in the active branches anyway.
Comment 2 Paolo Carlini 2012-11-30 19:58:56 UTC
*** Bug 55553 has been marked as a duplicate of this bug. ***