Possible minor g++ 3.4 issue
Jim Wilson
wilson@specifixinc.com
Wed Feb 18 03:58:00 GMT 2004
Dan Olson wrote:
> unsigned char *buffer = new (unsigned char)[1024];
> 3.3 versions of g++ accept this code without complaint, but 3.4 gives
> the message:
> test.cpp:3: error: expected `,' or `;' before '[' token
This was covered in a recent thread on the gcc list.
http://gcc.gnu.org/ml/gcc/2004-02/msg00970.html
http://gcc.gnu.org/ml/gcc/2004-02/msg00974.html
This is not valid C++. Earlier g++ versions accepted it, but g++ now
correctly rejects it, as we are trying to make g++ conform better to the
C++ standard.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc-bugs
mailing list