http://llvm.org/bugs/show_bug.cgi?id=15453
Bug ID: 15453
Summary: static constexpr member function fails to compile
Product: clang
Version: 3.2
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following code:
//--------------------------------------------------
class MyClass
{
public:
static constexpr int func(int);
};
constexpr int MyClass::func(int i) { return i+1; }
//--------------------------------------------------
issues the compiler error "Conflicting types for 'func'".
(Note that if the function is implemented in its declaration inside the class,
it compiles ok.)
--
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