[LLVMbugs] [Bug 7985] clang ignores candidate template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 9 14:53:02 PST 2010


Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2010-11-09 16:53:01 CST ---
I think Clang is behaving correctly (or, at least, reasonably) here.
Instantiating the definition of a static data member shouldn't change its type,
since we can choose any "use" at which to instantiate it. Admittedly, this is a
grey area of the standard, and implementations are split: GCC allows the code,
EDG and Clang rejects it.

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