Variably sized data types and local functions
Christian Ehrhardt
ehrhardt@mathematik.uni-ulm.de
Sat Apr 5 20:32:00 GMT 2003
PR 8081 is basically about this piece of code (gives an ICE with all
versions of gcc):
void f (int size)
{
typedef struct { char val[size]; } block;
block retframe_block () { }
retframe_block ();
}
Now my question is: Should this be legal?
Second question: Should an actual parameter of variable size be legal, i.e.:
void f (int size)
{
typedef struct { char val[size]; } block;
void retframe_block (block b) { }
}
None of the variations I tried currently work, but I managed to get
at least three different ICEs.
regards Christian
--
THAT'S ALL FOLKS!
More information about the Gcc
mailing list