https://bugs.llvm.org/show_bug.cgi?id=21866

Reid Kleckner <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |[email protected]
             Status|NEW                         |RESOLVED

--- Comment #1 from Reid Kleckner <[email protected]> ---
Does not crash anymore:

$ clang --target=x86_64-linux -c -std=c++11 no-lookup-entry.cpp
no-lookup-entry.cpp:4:46: error: template specialization or definition requires
a template parameter list corresponding to the nested type 'S<A>'
template<typename A> template<( struct S<A>::T {};
                                             ^
no-lookup-entry.cpp:4:46: error: 'T' cannot be defined in a parameter type
no-lookup-entry.cpp:4:50: error: expected ')'
template<typename A> template<( struct S<A>::T {};
                                                 ^
no-lookup-entry.cpp:4:31: note: to match this '('
template<typename A> template<( struct S<A>::T {};
                              ^
no-lookup-entry.cpp:4:50: error: expected template parameter
template<typename A> template<( struct S<A>::T {};
                                                 ^
no-lookup-entry.cpp:4:50: error: expected ',' or '>' in template-parameter-list
no-lookup-entry.cpp:4:50: warning: declaration does not declare anything
[-Wmissing-declarations]
no-lookup-entry.cpp:5:18: error: expected '}'
static void g() {
                 ^
no-lookup-entry.cpp:5:17: note: to match this '{'
static void g() {
                ^
1 warning and 6 errors generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to