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++/15938] ICE with anonymous unions


------- Additional Comments From giovannibajo at libero dot it  2005-07-21 15:32 -------
It might indeed be obsolete code: I don't think you can currently create an 
union (or a record) with only unnamed fields. If you want to purse this 
further, you could regtest changing this:

      if (!field)
	{
	  error ("union %qT with no named members cannot be initialized",
		 type);
	  ce->value = error_mark_node;
	}

with "gcc_assert (field);". Which will probably succeed, as there are no 
occurrences of this error message in my last g++.log.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15938


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