Questionable g++ behaviour
Arthur Pemberton
pemboa at gmail.com
Wed Feb 1 02:42:07 UTC 2006
I am by no means a guru in C++, so I come to the list to ask advice. I have
been informed that C++ does not allow for array declarations using varaibles
as the size parameter:
<data_type> <array_name>[<variable>]
Yet g++ clearly allows this. Is this my misunderstanding? If so, can anyone
point me in the direction of the appropriate C++ specs so that I may use as
evidence? Or is this a bug or gotcha in g++? If so, should I file a bug
report?
I have attached a sample .cpp which compiles and runs for me.
Thank you.
--
As a boy I jumped through Windows, as a man I play with Penguins.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/devel/attachments/20060131/0c350836/attachment-0002.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: questionable.cpp
Type: text/x-c++src
Size: 280 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20060131/0c350836/attachment-0002.bin
More information about the devel
mailing list