This is the mail archive of the
cygwin
mailing list for the Cygwin project.
C++ name with leading underscore character not Compiling
- From: "Chelton Evans" <cheltonevans at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 16 Apr 2007 19:34:10 +1000
- Subject: C++ name with leading underscore character not Compiling
I believe it is legal to have a C++ variable name with a leading
underscore. A name with two underscores is reserved, so
I guess this is illegal. Currently the two cases are reversed.
class hat { ... void fred( int __name) ... compiles, but
class hat { ... void fred( int _name)... which is legal does not
compile.
Could you confirm or deny the problem. Thanks and sorry if this
has already been addressed. I am porting my code from Fedora,
and compiling it in Cygwin and got a shock.
Chelton Evans
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/