[llvm-bugs] [Bug 24412] New: Duplicate "no template named" error
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 10 08:09:52 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24412
Bug ID: 24412
Summary: Duplicate "no template named" error
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: dnovillo at google.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The following code snippet generates two instances of the same error message.
This happens with Clang trunk as of today.
$ ./clang++ --version
clang version 3.8.0 (trunk 244446) (llvm/trunk 244449)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat dup.cpp
namespace x82 {
template <int, typename x94>
void WithArgs(x94);
}
void x123() { WithArgs<1>(x123); }
$ ./clang++ -c -std=c++11 dup.cpp
dup.cpp:5:15: error: no template named 'WithArgs'; did you mean
'x82::WithArgs'?
void x123() { WithArgs<1>(x123); }
^~~~~~~~
x82::WithArgs
dup.cpp:3:6: note: 'x82::WithArgs' declared here
void WithArgs(x94);
^
dup.cpp:5:15: error: no template named 'WithArgs'; did you mean
'x82::WithArgs'?
void x123() { WithArgs<1>(x123); }
^~~~~~~~
x82::WithArgs
dup.cpp:3:6: note: 'x82::WithArgs' declared here
void WithArgs(x94);
^
2 errors generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150810/3f075884/attachment.html>
More information about the llvm-bugs
mailing list