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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to