This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12807] [tree-ssa] ICE on variable sized array in class


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807



------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 15:01 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

> Variably sized arrays are new in C, but shouldn't be accepted in C++
> in strict conformance mode.

Well, in C99, you can do

f(int n) { int x[n]; }

and

struct f { int a; int x[]; }

but not

struct f { int a; int x[a]; }

or something, which is what produces the ICE.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]