[LLVMbugs] [Bug 5678] [extension] variable length arrays are not permitted in C++ in GNU mode.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 11 19:53:37 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=5678
Yuri <yuri at tsoft.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #10 from Yuri <yuri at tsoft.com> 2010-06-11 21:53:36 CDT ---
No, its not completely solved, with r105825 I see the errors with non-POD
types:
--- testcase ---
struct C {
C() {
}
};
int cnt();
void f() {
const int num = cnt();
struct MyRec {
C cc;
} c[num];
}
--- output ---
ex.C:12:6: error: variable length array of non-POD element type 'struct MyRec'
} c[num];
^
1 error generated.
--
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