[Bug c++/35125] Violating standards
amitondemand at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 8 07:00:00 GMT 2008
------- Comment #4 from amitondemand at gmail dot com 2008-02-08 06:59 -------
i think this should not work. you should get an error that array size must be
constant.
(In reply to comment #1)
> This code doesn't work reliably. Change it to
> int main()
> {
> int size;
> cout<<"Enter size of array: ";
> cin>>size;
> int arr[size];
> ...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35125
More information about the Gcc-bugs
mailing list