[Bug c++/12879] [3.4 Regression] double error message when using incomplete types in a struct
cmchugh at callixa dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 13 00:57:00 GMT 2005
------- Additional Comments From cmchugh at callixa dot com 2005-04-13 00:56 -------
Broken in 3.4.3 on AIX 5.2;
$ cat x.cpp
struct Exception {
static void raise () throw (Exception){ throw Exception(); }
};
$ g++ x.cpp
x.cpp:2: error: invalid use of undefined type `struct Exception'
x.cpp:1: error: forward declaration of `struct Exception'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12879
More information about the Gcc-bugs
mailing list