public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/57750] New: Internal compiler error when initializing struct member with array
@ 2013-06-28 12:09 dabler at gmail dot com
2013-06-28 21:06 ` [Bug c/57750] " mpolacek at gcc dot gnu.org
2013-06-28 21:07 ` mpolacek at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: dabler at gmail dot com @ 2013-06-28 12:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57750
Bug ID: 57750
Summary: Internal compiler error when initializing struct
member with array
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dabler at gmail dot com
A code that causes the problem:
void main(){ struct a { int *b; } a = { (int*){1} }; }
Command line:
gcc bug.c
The compiler output:
bug.c: In function 'main':
bug.c:1:21: warning: initialization makes pointer from integer without a cast
[enabled by default]
bug.c:1:21: warning: (near initialization for '(anonymous)') [enabled by
default]
bug.c:1:35: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
Output of gcc -v:
gcc (Gentoo 4.6.3 p1.7, pie-0.5.2) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Output of gcc bug.c -save-temps; cat bug.i:
# 1 "bug.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "bug.c"
void main(){ struct a { int *b; } a = { (int*){1} }; }
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/57750] Internal compiler error when initializing struct member with array
2013-06-28 12:09 [Bug c/57750] New: Internal compiler error when initializing struct member with array dabler at gmail dot com
@ 2013-06-28 21:06 ` mpolacek at gcc dot gnu.org
2013-06-28 21:07 ` mpolacek at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-06-28 21:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57750
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed in 4.7/4.8/trunk and 4.6 branch is closed now.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/57750] Internal compiler error when initializing struct member with array
2013-06-28 12:09 [Bug c/57750] New: Internal compiler error when initializing struct member with array dabler at gmail dot com
2013-06-28 21:06 ` [Bug c/57750] " mpolacek at gcc dot gnu.org
@ 2013-06-28 21:07 ` mpolacek at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-06-28 21:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57750
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Thus closing.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-28 21:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28 12:09 [Bug c/57750] New: Internal compiler error when initializing struct member with array dabler at gmail dot com
2013-06-28 21:06 ` [Bug c/57750] " mpolacek at gcc dot gnu.org
2013-06-28 21:07 ` mpolacek at gcc dot gnu.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).