[Bug c++/15759] ICE with function pointers
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 29 13:44:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list