This is the mail archive of the gcc@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]

Re: [BUG] int i; float a[i];


Gabriel Dos Reis wrote:

Mathieu Malaterre <mmalater@nycap.rr.com> writes:

| Hello,
| | Sorry for the subject but I really can't find any keyword to
| define it. Can somebody please point me to the bug in the bugzilla,
| since I believe this is not valid c++ code:
| | int foo(int i)
| {
| float a[i]; //Is this valid ?


GCC extension. Try -pedantic.

Very cool! How do I find what g++ is actually doing ? It doesn't looks like it's calling new ...


Mathieu


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