public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42262]  New: internal compiler error: in set_designator, at c-typeck.c:5771
@ 2009-12-03 13:25 abacabadabacaba at gmail dot com
  2009-12-03 19:14 ` [Bug c/42262] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: abacabadabacaba at gmail dot com @ 2009-12-03 13:25 UTC (permalink / raw)
  To: gcc-bugs

This code triggers ICE:

int a[] = {[0 ... 1] = "", [0] = ""};

GCC version info:
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.2-2ubuntu1'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --disable-werror
--with-arch-32=i486 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.2 (Ubuntu 4.4.2-2ubuntu1)

Exact command line: gcc test.c

GCC output:
test.c:1: internal compiler error: in set_designator, at c-typeck.c:5771
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.


-- 
           Summary: internal compiler error: in set_designator, at c-
                    typeck.c:5771
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: abacabadabacaba at gmail dot com
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

* [Bug c/42262] internal compiler error: in set_designator, at c-typeck.c:5771
  2009-12-03 13:25 [Bug c/42262] New: internal compiler error: in set_designator, at c-typeck.c:5771 abacabadabacaba at gmail dot com
@ 2009-12-03 19:14 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-12-03 19:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-12-03 19:13 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|x86_64-linux-gnu            |
   GCC host triplet|x86_64-linux-gnu            |
 GCC target triplet|x86_64-linux-gnu            |
      Known to fail|                            |4.3.0 4.4.0 4.5.0 4.1.0
                   |                            |3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-03 19:13:53
               date|                            |


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


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

* [Bug c/42262] internal compiler error: in set_designator, at c-typeck.c:5771
       [not found] <bug-42262-4@http.gcc.gnu.org/bugzilla/>
  2013-11-29 21:24 ` jsm28 at gcc dot gnu.org
@ 2013-11-29 21:27 ` jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-11-29 21:27 UTC (permalink / raw)
  To: gcc-bugs

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

Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #3 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 4.9.


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

* [Bug c/42262] internal compiler error: in set_designator, at c-typeck.c:5771
       [not found] <bug-42262-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-29 21:24 ` jsm28 at gcc dot gnu.org
  2013-11-29 21:27 ` jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-11-29 21:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Author: jsm28
Date: Fri Nov 29 21:24:14 2013
New Revision: 205543

URL: http://gcc.gnu.org/viewcvs?rev=205543&root=gcc&view=rev
Log:
    PR c/42262
c:
    * c-typeck.c (process_init_element): Do not treat a string as
    initializing a whole array when used with a designator for an
    individual element.

testsuite:
    * gcc.dg/c99-init-5.c, gcc.dg/c99-init-6.c: New tests.

Added:
    trunk/gcc/testsuite/gcc.dg/c99-init-5.c
    trunk/gcc/testsuite/gcc.dg/c99-init-6.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2013-11-29 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-03 13:25 [Bug c/42262] New: internal compiler error: in set_designator, at c-typeck.c:5771 abacabadabacaba at gmail dot com
2009-12-03 19:14 ` [Bug c/42262] " pinskia at gcc dot gnu dot org
     [not found] <bug-42262-4@http.gcc.gnu.org/bugzilla/>
2013-11-29 21:24 ` jsm28 at gcc dot gnu.org
2013-11-29 21:27 ` jsm28 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).