[Bug c++/48980] Misleading error message when a conversion is invalid while calling a protected base constructor
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 12 16:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48980
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-12 15:58:06 UTC ---
With 4.6 you just get:
d.cc: In constructor 'derived::derived(const int*)':
d.cc:6:39: error: invalid conversion from 'const int*' to 'int*' [-fpermissive]
d.cc:3:4: error: initializing argument 1 of 'base::base(int*)' [-fpermissive]
More information about the Gcc-bugs
mailing list