------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-29 13:43 ------- Note the following is make sure that we create correct code: extern "C" void exit (int); extern "C" void abort(); int defValue() { exit(0);return(0); } int(*defaultValue)() = defValue; void a(int blah = defaultValue()) {} int main() { a(); abort (); }
And with checking not enabled we get the correct code (which I find werid but hey). -- What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-checking http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15759