This is the mail archive of the gcc-patches@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] |
Hi Mark,In all three uses of that function, we want a class type, AFAICT. So, I would change the function to be is_class_type and use CLASS_TYPE_P as the predicate in the test.I tried that, and unfortunately the build fails in libstdc++-v3 with the below. I'm pretty sure (if you want I can double check) that build_offset_ref (in init.c) is the caller passing sometimes a non-CLASS_TYPE_P, it asserts only TYPE_P. I was about to submit a version just using maybe_class_type_p, but was unsure about the error message...
if (TREE_CODE (type) == TYPENAME_TYPE || class_type_p (...)) ...
-- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |