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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs