This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]