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]
Other format: [Raw text]

Re: Possible minor g++ 3.4 issue


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



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