[LLVMbugs] [Bug 8292] Clang does not sufficiently check completely defined-ness of class template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 22 15:36:43 PDT 2012


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-03-22 17:36:43 CDT ---
This was fixed way back in r130298.

<stdin>:1:81: error: implicit instantiation of template 'A<int>' within its own
definition
template<typename T> struct A { struct B{}; void f() {} struct C { int
c[sizeof(A<int>::B)]; }; void g() {} }; int main() { A<int> b; b.f(); b.g(); }
                                                                               
^

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