[llvm-bugs] [Bug 36306] New: variable template specialization accepted as class member name

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 8 11:37:42 PST 2018


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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180208/8f75663f/attachment.html>


More information about the llvm-bugs mailing list