Recover from errors
Grigorio V. Moshkin
grigorio@garant.ru
Wed Feb 2 08:37:00 GMT 2005
Hi!
First, thanks to Andrew Pinski <pinskia@physics.uc.edu>, for his fast and
exact replay to my previous question!
I am porting one large windows application to linux. Code is formerly platform
independent. But, Microsoft Visual C++ (MSVC) 6 is very unserious with ISO
C++ standard. For exemple, consider the fragment:
class A {
public:
virtual void func() throw (C, D);
};
class B: public A {
public:
void func();
};
Of course, gcc notices the error:
"looser throw specifier for `virtual void func()'". And, it's ISO C++ strict
rule. But MSVC doesn't emit an error and simply compiles that code.
The problem is there are too many fragments of code above with this tipical
error and other few tipical errors.
Does gcc allow (maybe via an undocumented option or slight SOURCE HACKING
(thats because I write to gcc-BUGS mailing list)) to generate C++ code with
this tipical errors FIXED? I ask just because I see, gcc does collect all
SUFFICIENT (enough) INFO to FIX that tipical erros.
More information about the Gcc-bugs
mailing list