[LLVMbugs] [Bug 8326] const union member in template class gives invalid error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 9 16:06:05 PDT 2011


Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2011-05-09 18:06:04 CDT ---
I think that, technically, this code is ill-formed, since it isn't of the form

  union { member-specification };

that declares an anonymous union. 

However, we should accept this code as an extension.

Fixed in Clang r131109.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list