Re: misusing placement new OR possible cxx bug

2008-10-13 Thread Ralovich, Kristóf
On Mon, Oct 13, 2008 at 18:49, Andreas Schwab <[EMAIL PROTECTED]> wrote: > "Ralovich, Kristóf" <[EMAIL PROTECTED]> writes: > >> >> >> int >> main(int argc, char** argv) >> { >> char* d = new char[256, 256]; >> return 0; >> } >> >> ---

Re: misusing placement new OR possible cxx bug

2008-10-13 Thread Andreas Schwab
"Ralovich, Kristóf" <[EMAIL PROTECTED]> writes: > > > int > main(int argc, char** argv) > { > char* d = new char[256, 256]; > return 0; > } > > > > Is this the use of 'placement new' in weird syntax I didn't know

Re: misusing placement new OR possible cxx bug

2008-10-13 Thread Andrew Thomas Pinski
Sent from my iPhone On Oct 13, 2008, at 9:10 AM, "Ralovich, Kristóf" <[EMAIL PROTECTED] m> wrote: Hi GCC developers, I have a c++ source, that I think is wrong (wrt the c++ standard), but accepted by g++ (and msvc too)! int main(int argc, char** a

misusing placement new OR possible cxx bug

2008-10-13 Thread Ralovich, Kristóf
Hi GCC developers, I have a c++ source, that I think is wrong (wrt the c++ standard), but accepted by g++ (and msvc too)! int main(int argc, char** argv) { char* d = new char[256, 256]; return 0; } Is this th