[LLVMbugs] [Bug 12673] New: new[] operator incorrectly detects incomplete type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 26 02:09:10 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12673
Bug #: 12673
Summary: new[] operator incorrectly detects incomplete type
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ranma42 at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8461
--> http://llvm.org/bugs/attachment.cgi?id=8461
Minimal test case
The application of operator new[] on a type which is a 2-dimensional array of
template structures the compiler reports an error.
The following error message
$ clang++ minimal.cpp
minimal.cpp:6:6: error: allocation of incomplete type 'MyVector' (aka 'MyT<int>
[1][1]')
new MyVector[1];
^~~~~~~~
1 error generated.
is generated by
$ clang++ --version
Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix
on the attached file.
--
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