[LLVMbugs] [Bug 11548] New: no diagnostic for ill-formed call to function on a member of the current instantiation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 12 15:58:11 PST 2011


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

             Bug #: 11548
           Summary: no diagnostic for ill-formed call to function on a
                    member of the current instantiation
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This bit me recently: see r146366. g++ diagnoses the following, but clang
doesn't notice anything wrong with it:

struct A {
  void f(int);
};

template<typename T> struct S {
  A a;
  void g() {
    a.f();
  }
};

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