[LLVMbugs] [Bug 19566] New: gcc-4.9 happy, but clang error: no template named 'B_'; did you mean 'X::B_'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 25 13:37:34 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19566
Bug ID: 19566
Summary: gcc-4.9 happy, but clang error: no template named
'B_'; did you mean 'X::B_'
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mcrosier at codeaurora.org
CC: apazos at codeaurora.org, dgregor at apple.com,
llvmbugs at cs.uiuc.edu, mcrosier at codeaurora.org,
richard-llvm at metafoo.co.uk
Classification: Unclassified
Clang produces and error for the following test case:
struct X {
template<class T> struct B_ { T x; };
};
template<class T>
int foo(typename X::B_<T>) { return (&X::operator B_<T> ); }
$ clang-arm64-x++ -S foo.ii -w -o -
foo.ii:6:51: error: no template named 'B_'; did you mean 'X::B_'?
int foo(typename X::B_<T>) { return (&X::operator B_<T> ); }
^~
X::B_
foo.ii:3:28: note: 'X::B_' declared here
template<class T> struct B_ { T x; };
^
1 error generated.
However, the latest gcc-4.9 happily accepts this.. Richard? :D
--
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/20140425/312c245c/attachment.html>
More information about the llvm-bugs
mailing list