This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51188] invalid static_cast from type 'XBase' to type 'int'
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Nov 2011 15:17:35 +0000
- Subject: [Bug c++/51188] invalid static_cast from type 'XBase' to type 'int'
- Auto-submitted: auto-generated
- References: <bug-51188-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51188
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-17 15:17:35 UTC ---
(In reply to comment #2)
> There is a strange thing here, if we reach 7 members in a class, things are
> done differently in the compiler.
>
> Jason, I'd like to run the testsuite without this 7 member rule, how could I do
> that ?
Look for "if (n_fields > 7)" in finish_struct_1.