------- Comment #8 from pinskia at gcc dot gnu dot org 2006-06-21 18:44 ------- (In reply to comment #2) > then my_other_class can also be made non-TREE_PUBLIC. If 'x' was in an > anonymous namespace the logic would be the same.
Actually it cannot because I define in a different TU my_other_class and now I get an ODR violation. Likewise for myclass. Yes this is all undefined but I rather have it be diagnose than having it be undefined behavior. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25915