bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ treats Rectangle as a keyword


From: Kelly Mandrake
Subject: g++ treats Rectangle as a keyword
Date: Mon, 09 Feb 2004 02:18:28 -0500



It seems Rectangle is being treated as a reserved keyword, if used for example as a class identifier i.e.

class Rectangle{...};

the compiler (g++) will generate an error stateing there is no declaration of a Rectangle wherever an instance of the class is created

Rectangle Rect1();

Rectangle is not a native keyword to my knowledge.  Is there a reason?

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca





reply via email to

[Prev in Thread] Current Thread [Next in Thread]