[Bug c++/12255] exception-specifications unchecked during assignment of pointer to function

pluto at agmk dot net gcc-bugzilla@gcc.gnu.org
Thu Mar 27 19:30:00 GMT 2008



------- Comment #3 from pluto at agmk dot net  2008-03-27 19:29 -------
(In reply to comment #2)
> ping-bug,
> comeau detects this error w/o any problems.
> 
> "ComeauTest.c", line 2: error: incompatible exception specifications
>   void (*pt)() throw() = &foo
>                          ^

one more trivial testcase:

$ cat exspec.cpp
void foo() throw (int);
void (*pt)() throw() = &foo;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12255



More information about the Gcc-bugs mailing list