http://llvm.org/bugs/show_bug.cgi?id=11307
Bradley T. Hughes <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Bradley T. Hughes <[email protected]> 2011-11-04 07:46:25 CDT --- After a discussion with my colleagues, I read 14.3.2 of the C++ standard: A template-argument for a non-type, non-template template-parameter shall be one of: - an integral constant-expression of integral or enumeration type; or - the name of a non-type template-parameter; or - the address of an object or function with external linkage, including function templates and function template-ids but excluding non-static class members, expressed as & id-expression where the & is optional if the name refers to a function or array, or if the corresponding template-parameter is a refer- ence; or - a pointer to member expressed as described in 5.3.1 . A static function does not have external linkage, and thus isn't a valid non-type template parameter. Sorry for the noise. -- 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. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
