**On linux rh73 + gcc32** The code following: # 1 "Test.cpp" # 1 "<built-in>" # 1 "<command line>" # 1 "Test.cpp" struct TestClass {}; struct DerivClass : public TestClass {}; int main(int, char**) { TestClass *t = 0; DerivClass* d = t; return 0; } compiled with the command line g++ Test.cpp -pedantic -o upcast_test -save-temps gives: Test.cpp: In function `int main(int, char**)': Test.cpp:5: warning: invalid conversion from `TestClass*' to `DerivClass*' g++ Test.cpp -pedantic -w -o upcast_test -save-temps gives no message at all. Expected: error message - correct when no -pedantic flaf is used: Test.cpp: In function `int main(int, char**)': Test.cpp:5: invalid conversion from `TestClass*' to `DerivClass*'
This is a dup of bug 10032 which is fixed for 3.3.1 and 3.4. (3.3.1 will be out in the next two weeks). *** This bug has been marked as a duplicate of 10032 ***