[LLVMbugs] [Bug 16259] clang crashes on template instation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 2 08:55:22 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=16259
Andrey Bokhanko <andreybokhanko at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |andreybokhanko at gmail.com
Resolution|--- |WORKSFORME
Assignee|unassignedclangbugs at nondot. |andreybokhanko at gmail.com
|org |
--- Comment #1 from Andrey Bokhanko <andreybokhanko at gmail.com> ---
As I verified, the test now compiles fine:
$ cat test.cpp
template <class T, class A>
void f() {
T *q;
q->A::~A();
}
class Q {};
int main() {
f<Q, int>();
}
$ clang test.cpp
test.cpp:4:10: error: 'int' is not a class, namespace, or enumeration
q->A::~A();
^
test.cpp:9:5: note: in instantiation of function template specialization 'f<Q,
int>' requested here
f<Q, int>();
^
1 error generated.
(clang prints errors, but this is fine, as the program is incorrect; the
problem was that clang crashed)
Yours,
Andrey Bokhanko
===============
Software Engineer
Intel Compiler Team
Intel
--
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/20150702/779ed95c/attachment.html>
More information about the llvm-bugs
mailing list