public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24329]  New: cc1 segfaulting when compiling code with long #define
@ 2005-10-12  9:49 jojosantzf at yahoo dot fr
  2005-10-12 10:06 ` [Bug c/24329] [4.0/4.1 regression] segfault with -Wall and long integer literal falk at debian dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jojosantzf at yahoo dot fr @ 2005-10-12  9:49 UTC (permalink / raw)
  To: gcc-bugs

gcc -Wall -o degre-radian degre-radian.c gives me an error when I try to
compile my source code.

I'm using Debian GNU/Linux SID with a 2.4.27-2-386 linux kernel.
Steps to reproduce : 
1) Download my source code (at
http://jojosan.hd.free.fr/jojosan/degre-radian.c)
2) Try to compile it.

I suppose that it's the 100-decimal precision of pi that I defined that causes
the crash, but I really need for further uses to get it that precise and...
it's a bug, after all !

The
gcc -Wall -o degre-radian degre-radian.c gives me that error :
----------------------
degre-radian.c: In function 'main':
degre-radian.c:15: warning: comparison between pointer and integer
degre-radian.c:17:23: warning: integer constant is too large for its type
degre-radian.c:17: warning: integer constant is too large for 'long' type
degre-radian.c:17: warning: left-hand operand of comma expression has no effect
degre-radian.c:20: warning: comparison between pointer and integer
degre-radian.c:22:40: warning: integer constant is too large for its type
degre-radian.c:22: warning: integer constant is too large for 'long' type
degre-radian.c:23:94: warning: integer constant is too large for its type
degre-radian.c:23: warning: integer constant is too large for 'long' type
degre-radian.c:23: warning: left-hand operand of comma expression has no effect
gcc: Internal error: Erreur de segmentation (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
----------------------

Apparently, there is no terrible error in the source code, (no "error"
message), so I suppose that it's GCC's (seg)fault. GCC should then be able to
generate my binary.

gcc --version gives me these informations : 

gcc (GCC) 4.0.2 (Debian 4.0.2-1)


-- 
           Summary: cc1 segfaulting when compiling code with long #define
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jojosantzf at yahoo dot fr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24329


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-11-03 15:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-12  9:49 [Bug c/24329] New: cc1 segfaulting when compiling code with long #define jojosantzf at yahoo dot fr
2005-10-12 10:06 ` [Bug c/24329] [4.0/4.1 regression] segfault with -Wall and long integer literal falk at debian dot org
2005-10-12 11:34 ` pinskia at gcc dot gnu dot org
2005-10-12 13:05 ` pinskia at gcc dot gnu dot org
2005-10-31  6:13 ` mmitchel at gcc dot gnu dot org
2005-11-01 23:34 ` janis at gcc dot gnu dot org
2005-11-03  0:50 ` jsm28 at gcc dot gnu dot org
2005-11-03  3:30 ` jsm28 at gcc dot gnu dot org
2005-11-03 14:45 ` [Bug c/24329] [4.0 " pinskia at gcc dot gnu dot org
2005-11-03 14:49 ` jsm28 at gcc dot gnu dot org
2005-11-03 15:21 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).