[llvm-bugs] [Bug 32521] New: Duplicate "no member named 'x' in namespace 'y'" error message

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 4 11:21:29 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32521

            Bug ID: 32521
           Summary: Duplicate "no member named 'x' in namespace 'y'" error
                    message
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm-bugs at justinbogner.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

A duplicate error message is emitted involving missing namespace members in
template parameters. Reproduces with the following:

  template <typename X> class Qux {};
  namespace foo {}
  void bar(Qux<foo::baz> x) {}

Which emits two identical errors like so:

  % clang++ -x c++ -fsyntax-only foo.cpp
  foo.cpp:3:19: error: no member named 'baz' in namespace 'foo'
  void bar(Qux<foo::baz> x) {}
               ~~~~~^
  foo.cpp:3:19: error: no member named 'baz' in namespace 'foo'
  void bar(Qux<foo::baz> x) {}
               ~~~~~^
  2 errors generated.

-- 
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/20170404/45657914/attachment.html>


More information about the llvm-bugs mailing list