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

           Summary: clang allows references to fulfill reference non-type
                    parameters
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


clang accepts the following code:

template <int& i>
struct foo {};

int x, &y = x;

foo<y> f;

It should not, because a reference satisfies no condition in 14.3.2. It comes
close to satisfying the third condition, but references are not objects.

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