[LLVMbugs] [Bug 6424] New: Not instantiating default constructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 25 15:41:12 PST 2010


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

           Summary: Not instantiating default constructor
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This code should be ill-formed, but we fail to instantiate the default
constructor for X<7> and therefore don't see it. This is a reduction of the
tramp3d-v4 link failure.

template<int I> struct X { 
  X() { 
    int *ip = I;
  }
};

template<int> struct Y {
  typedef X<7> X7;

  void f() { X7(); }
};

template void Y<3>::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