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

            Bug ID: 36306
           Summary: variable template specialization accepted as class
                    member name
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: llvm-bugs@lists.llvm.org

Example of incorrectly-accepted code:

template<int> int n;
struct X { int n<0>; };

This results in an anonymous FieldDecl.

Thanks to Jonathan Caves for reporting this!

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

Reply via email to