c++/10635: [3.3/3.4 regression] ICE (segfault) when dereferencing an incomplete type casted from a void pointer

Giovanni Bajo giovannibajo@libero.it
Mon May 12 17:52:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10635

After analyzing a duplicate of this (c++/10727), I noticed that if I move
the function get_incomplete() outside the Foo class (in the reduced snippet
above), GCC 2.95 correctly rejects the code. Thus, I mark this as a
regression, since the behaviour on this issue is globally worse than it used
to be.
Notice that this happens with moc code generated by Qt, so it's very
important to fix this.

Giovanni Bajo



More information about the Gcc-bugs mailing list