[Bug c++/49027] g++ ignores -fno-exceptions in uninstantiated template

2011-05-18 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49027 --- Comment #2 from Andrew Pinski 2011-05-18 17:36:18 UTC --- IIRC this was done on purpose but I cannot find the original discussion.

[Bug c++/49027] g++ ignores -fno-exceptions in uninstantiated template

2011-05-18 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49027 --- Comment #1 from Richard Guenther 2011-05-18 09:43:37 UTC --- I'm not sure. What about extern int f2(); struct NoExcept {}; template void f1() { try { f2(); } catch (...) { } } template<> void f1() { f2(); } template f1(); ? EH code co