[LLVMbugs] [Bug 6490] New: Negative array dimensions allowed in template instantiations
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 3 23:00:58 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6490
Summary: Negative array dimensions allowed in template
instantiations
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rideau3 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
coppro at overthere:~$ clang -x c++ -
#include <stdio.h>
template <typename T>
struct bar {
int i [sizeof(T)-2];
};
int main () { bar<char> b; printf("%d\n", sizeof(b.i)); };
coppro at overthere:~$ ./a.out
-4
coppro at overthere:~$
--
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