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

Re: g++ bug report


> G++ fails to compile this valid code:
>
> // begin
>
> class MyClass {};
>
> int main() {
>   MyClass **p;
>   *p = new (MyClass*)[10];
> }
>
> // end

shouldn't it be "p = new (MyClass*)[10];"?






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