X-Spam-Check-By: sourceware.org Message-ID: <1cbe225f0704160234u24b104a5o9b459178e895a5a8@mail.gmail.com> Date: Mon, 16 Apr 2007 19:34:10 +1000 From: "Chelton Evans" To: cygwin AT cygwin DOT com Subject: C++ name with leading underscore character not Compiling MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/