[Bug c++/39070] Segmentation fault

2009-02-12 Thread kononov at ftml dot net
--- Comment #3 from kononov at ftml dot net 2009-02-12 23:49 --- $ cat t.cc template struct junk { template static Z& y(); template static int test(...); template static char test(typeof(y())*); static int const value=sizeof(test(0)); }; typedef char type[junk::value==sizeof

[Bug c++/39070] Segmentation fault

2009-02-12 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-02-12 23:21 --- I do get an ICE: g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ -c x.cc x.cc: In instantiation of 'const int junk::value': x.cc:6: instantiated from here x.cc:4: internal compiler error: Segmentation fault Please sub

[Bug c++/39070] Segmentation fault

2009-02-05 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-06 01:37 --- I don't get a segfault on the trunk but I do get an error message: t.cc: In instantiation of 'const int junk::value': t.cc:6: instantiated from here t.cc:4: error: no matching function for call to 'junk::test(int)'