C++ name with leading underscore character not Compiling

Chelton Evans cheltonevans@gmail.com
Mon Apr 16 09:34:00 GMT 2007


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/



More information about the Cygwin mailing list