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]

[Bug c++/51188] invalid static_cast from type 'XBase' to type 'int'


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.


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