[LLVMbugs] [Bug 12103] New: Delayed template parsing chokes on explicitly deleted non-member functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Feb 27 13:08:38 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12103
Bug #: 12103
Summary: Delayed template parsing chokes on explicitly deleted
non-member functions
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nico.rieck+llvm at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8104
--> http://llvm.org/bugs/attachment.cgi?id=8104
Simple test case
Compiling something as simple as
template<typename T> void f(T) = delete;
with -fdelayed-template-parsing chokes on the delete keyword:
t.cpp:1:40: error: expected '{'
template<typename T> void f(T) = delete;
^
Parser::ConsumeAndStoreFunctionPrologue calls Parser::ConsumeAndStoreUntil
looking for the starting '{' of the function definition which is never
encountered. It bails out at the ';' and reports the error.
--
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