[llvm-bugs] [Bug 17646] Assertion failed: No canonical type for non-dependent class template specialization
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 20 09:25:13 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=17646
Serge Pavlov <sepavloff at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sepavloff at gmail.com
Resolution|--- |WORKSFORME
--- Comment #2 from Serge Pavlov <sepavloff at gmail.com> ---
With current ToT (r276120) no crash is observed:
17646.cpp:5:12: error: use 'template' keyword to treat 'O' as a dependent
template name
void L<k>::O<T>::Fun() {}
^
template
17646.cpp:5:12: error: 'O' following the 'template' keyword does not refer to a
template
void L<k>::O<T>::Fun() {}
^
17646.cpp:5:12: warning: variable templates are a C++14 extension
[-Wc++14-extensions]
17646.cpp:5:12: error: no member named 'O' in 'L<>'
void L<k>::O<T>::Fun() {}
~~~~~~^
17646.cpp:5:13: error: expected ';' at end of declaration
void L<k>::O<T>::Fun() {}
^
;
17646.cpp:5:13: error: expected unqualified-id
17646.cpp:6:7: error: no type named 'O' in 'L<0>'
L<0>::O<int>::Fun();
~~~~~~^
17646.cpp:6:8: error: expected unqualified-id
L<0>::O<int>::Fun();
^
1 warning and 7 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/20160720/8b8ad689/attachment-0001.html>
More information about the llvm-bugs
mailing list