At 12:56 PM 7/27/2001, [EMAIL PROTECTED] wrote: >I've just encountered a very strange bug in the C pre-processor in cygwin 1.0 (the >cdrom version.) > >The bug manifests itself as the pre-processor just ignoring a subset of the >#include statements in the source file. Exactly which #includes will be ignored >is variable - two successive compiles of the same source file will cause different >include files to be ignored. Obviously, dropping random include files leads to >very odd diagnostics from the compiler but it's easy to see what is happening using >the >-E flag to just run the precprocessor. That is enough to show the bug. > >What seems to provoke this bug is a very long (>100 lines) single C comment at the >start of the file. The presence of that is what distinguished the broken source file >from >all the others which compile OK. When I split the comment into three, the problem >went away. > >Environment: > >cygwin 1.0 >NT 4.0 SP3 > >I'm happy to send someone enough stuff to re-produce this if needed. (The code >I'm trying to compile is all GPL). Can you reproduce it with the current net release? Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- 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/
Re: Strange bug in C pre-processor - cygwin 1.0
Larry Hall (RFK Partners, Inc) Fri, 27 Jul 2001 08:37:56 -0700
- Strange bug in C pre-processor - cygwin 1.0 srk
- Larry Hall (RFK Partners, Inc)