[LLVMbugs] [Bug 13393] New: Misleading diagnostic from ambiguous reference to class template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 18 15:17:34 PDT 2012


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

             Bug #: 13393
           Summary: Misleading diagnostic from ambiguous reference to
                    class template
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


jeweloflife:clang$ cat /tmp/red.cpp
template <class T> class A;
namespace inner {
  template <class T> class A;
}
using namespace inner;

class B : A<B> {};


jeweloflife:clang$ clang /tmp/red.cpp
/tmp/red.cpp:7:11: error: unknown template name 'A'
class B : A<B> {};
          ^
1 error generated.

jeweloflife:clang$ cat << EOF > /dev/null

Obviously this diagnostic should say something about an *ambiguous* template
reference, not an *unknown* one.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list