This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12255] exception-specifications unchecked during assignment of pointer to function
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2008 19:29:25 -0000
- Subject: [Bug c++/12255] exception-specifications unchecked during assignment of pointer to function
- References: <bug-12255-3238@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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