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

Eli Friedman <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |INVALID

--- Comment #2 from Eli Friedman <[email protected]> 2011-04-04 23:19:20 
CDT ---
This essentially reduces to the following:
template <class T> class Array1D {
  Array1D(int n, T *a);
};
template<typename T>
struct A {
  Array1D<int> x;
  A() : x(1, (const int*)0) {}
};

The code is invalid, but no diagnostic is required if the class isn't
instantiated.  clang is being more aggressive about diagnosing the issue than
gcc.

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