[LLVMbugs] [Bug 10187] New: Assertion when using '__range' in a ranged for loop in a template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 24 13:17:26 PDT 2011


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

           Summary: Assertion when using '__range' in a ranged for loop in
                    a template
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: akyrtzi at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


On r133816, the following test case asserts.

template<typename T>
struct S {
  void f() {
    for (auto &a : e)
      __range(a);
  }
  T e[10];
};

void g() { S<int>().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