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

            Bug ID: 35576
           Summary: Template variables could use a -Wvexing-parse
                    diagnostic
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: t.p.northo...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

Consider:

    template<typename T> int junk1(T::junk);
    template<typename T> int junk2(typename T::junk);

The first of these (in C++14 onwards) declares a template variable initialized
by T::junk, the second declares a template function taking T::junk as a
parameter. They are disturbingly similar.

So Richard Smith suggested I should file a bug report to get some kind of
warning in place under -Wvexing-parse.

-- 
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