[LLVMbugs] [Bug 8048] clang++ incorrectly deduces template argument to local type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 2 09:54:23 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8048

Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2010-11-02 11:54:23 CDT ---
We've decided to have Clang follow the C++0x semantics here, allowing local
types as template arguments. Recently, we added appropriate warnings here:


t.cpp:2:24: warning: template argument uses local type '<anonymous enum at
      t.cpp:2:12>' [-Wlocal-type-template-args]
void g() { enum { E }; f(E); }

-- 
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