This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]