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: Possible new[] regression in 3.4 WRT 3.3.[12]


Florian Weimer wrote:

David Daney wrote:



pSections = new (char*)[10];



I think you must omit the parens. They are not allowed if you allocate
arrays.


I know that I can omit the parentheses.

The problem is that I have existing code with the parentheses that compiles fine under 3.3.1.

I can now see that if I use -pedantic that it is not allowed.

Is it really the right-thing to make it fail under 3.4?

David Daney


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