[LLVMbugs] [Bug 14497] New: Incorrect parsing of decltype() of expression with > operator as template argument
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 3 13:05:30 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14497
Bug #: 14497
Summary: Incorrect parsing of decltype() of expression with >
operator as template argument
Product: clang
Version: 3.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ingo_weinhold at gmx.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following well-formed program fails compiling:
template<typename Dummy>
struct Foo {
static const bool dummy = true;
};
int main()
{
return Foo<decltype(2 > 1)>::dummy ? 0 : 1;
}
Error output:
template-argument-expression.cpp:9:24: error: expected ')'
return Foo<decltype(2 > 1)>::dummy ? 0 : 1;
^
template-argument-expression.cpp:9:21: note: to match this '('
return Foo<decltype(2 > 1)>::dummy ? 0 : 1;
^
--
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