[LLVMbugs] [Bug 9627] potentially bogus constructor errors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 4 21:19:20 PDT 2011


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

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |INVALID

--- Comment #2 from Eli Friedman <sharparrow1 at yahoo.com> 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.



More information about the llvm-bugs mailing list