Piece of code that compiles with gcc but not g++ [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicates: Is this a legitimate C++ code? “C subset of C++” -> Where not ? examples ? Could anybody come up with a piece of code that compiles with gcc or any other C compiler, and doesn't compile g++ or any other C++ compiler? UPDATE: I don't mean just keywords UPDATE2: Thank you All for answers. Apparently moderators were less enthusiastic than I was about subtle differences between C and C++. UPDATE3: to moderators: