[LLVMbugs] [Bug 11262] New: function templates used within VLA array bounds don't get instantiated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 28 15:34:01 PDT 2011


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

           Summary: function templates used within VLA array bounds don't
                    get instantiated
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu


Building this code:

  template<typename T> T min(T a, T b) { return a < b ? a : b; }
  void g(int*);
  void f() {
    int a[min(1,2)];
    g(a);
  }

... results in IR where min<int> is declared but not defined.

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