Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-Id: <5.1.1.6.0.20021104211313.01f88058@wheresmymailserver.com> X-Sender: (Unverified) Date: Mon, 04 Nov 2002 21:15:59 +0100 To: cygwin AT cygwin DOT com From: Jens Yllman Subject: RE: 1.3.13: problem using ntohs() in asm/bytorder.h in gcc 3.2. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sorry, most have hade a total melt down. The following code creates the problem. #include void test( void ) { short x = ::ntohs( 128 ); } Compiling it with the g++ -O2 returns the following error. Removing -O2 removes the error. Or as I said before -U__OPTIMIZE__ test.cpp: In function `void test()': test.cpp:5: parse error before `__builtin_constant_p' Jens Yllman (firstname at lastname dot com) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/