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

David Blaikie <dblai...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |dblai...@gmail.com
             Status|NEW                         |RESOLVED

--- Comment #1 from David Blaikie <dblai...@gmail.com> ---
Looks like GCC ToT rejects this too:

$ clang++-tot valid.cpp -c
valid.cpp:13:15: error: use of class template 'A<int>::B' requires template
arguments
    A< int >::B v(0, int_< 0 >());
              ^
valid.cpp:6:12: note: template is declared here
    struct B{
           ^
1 error generated.
blaikie@blaikie-linux2:~/dev/scratch$ g++-tot valid.cpp -c
valid.cpp: In function ‘int main()’:
valid.cpp:13:17: error: missing template arguments before ‘v’
   13 |     A< int >::B v(0, int_< 0 >());
      |                 ^
valid.cpp:14:11: error: ‘v’ was not declared in this scope
   14 |     (void)v;
      |           ^


https://godbolt.org/z/67WTY5

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

Reply via email to