[llvm-bugs] [Bug 33877] New: failure to report ambiguity between variable template and non-template variable

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 21 08:03:52 PDT 2017


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

            Bug ID: 33877
           Summary: failure to report ambiguity between variable template
                    and non-template variable
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvm-bugs at lists.llvm.org

Clang fails to report an ambiguity between a variable template and a
non-template when followed by <. Eg:

inline namespace {
  template<int n> constexpr double pi{3.141592653589793};
}
constexpr double pi{3.141592653589793};
double v = pi<0>;

... is accepted despite being invalid due to ambiguity.

(Filed on behalf of Lev Minkovsky)

-- 
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/20170721/6dcb59cd/attachment-0001.html>


More information about the llvm-bugs mailing list