[LLVMbugs] [Bug 7034] Are default args allowed in template function definitions?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 19 09:21:47 PDT 2010


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

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dgregor at apple.com
         Resolution|                            |INVALID

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2010-05-19 11:21:47 CDT ---
Clang is correct. C++ [dcl.fct.default]p6 says:

  Except for member functions of class templates, the default arguments in a
member function definition that appears outside of the class definition are
added to the set of default arguments provided by the member function
declaration in the class definition. Default arguments for a member function of
a class template shall be specified on the initial declaration of the member
function within the class template.

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