public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38648]  New: [4.2/4.3/4.4 regression] ICE with string literal
@ 2008-12-27 23:24 reichelt at gcc dot gnu dot org
  2008-12-27 23:25 ` [Bug c++/38648] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-27 23:24 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

========================
char a[1];

int foo(
{
  a = "";
  return 0;
}
========================

bug.cc:5: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

A similar code snippet triggers an ICE since GCC 3.1:

========================
char a[1];

int foo(a = "")
{
  return 0;
}
========================

bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with string literal
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/38648] [4.2/4.3/4.4 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
@ 2008-12-27 23:25 ` reichelt at gcc dot gnu dot org
  2008-12-27 23:48 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-27 23:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/38648] [4.2/4.3/4.4 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
  2008-12-27 23:25 ` [Bug c++/38648] " reichelt at gcc dot gnu dot org
@ 2008-12-27 23:48 ` pinskia at gcc dot gnu dot org
  2008-12-29 23:38 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-27 23:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-27 23:46 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |3.3.3 4.3.0 4.1.1 4.3.0
                   |                            |4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-27 23:46:27
               date|                            |


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


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

* [Bug c++/38648] [4.2/4.3/4.4 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
  2008-12-27 23:25 ` [Bug c++/38648] " reichelt at gcc dot gnu dot org
  2008-12-27 23:48 ` pinskia at gcc dot gnu dot org
@ 2008-12-29 23:38 ` rguenth at gcc dot gnu dot org
  2008-12-30  1:05 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-29 23:38 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/38648] [4.2/4.3/4.4 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-12-29 23:38 ` rguenth at gcc dot gnu dot org
@ 2008-12-30  1:05 ` pinskia at gcc dot gnu dot org
  2009-01-10 11:49 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-30  1:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-30 01:02 -------
I have a simple patch.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/38648] [4.2/4.3/4.4 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-12-30  1:05 ` pinskia at gcc dot gnu dot org
@ 2009-01-10 11:49 ` jakub at gcc dot gnu dot org
  2009-01-10 11:51 ` [Bug c++/38648] [4.2/4.3 " jakub at gcc dot gnu dot org
  2009-01-15 16:11 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-10 11:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-01-10 11:49 -------
Subject: Bug 38648

Author: jakub
Date: Sat Jan 10 11:49:04 2009
New Revision: 143245

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143245
Log:
        PR c++/38648
        * typeck.c (cp_build_modify_expr): Check for NULL
current_function_decl.

        * g++.dg/expr/string-1.C: New test.
        * g++.dg/expr/string-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/expr/string-1.C
    trunk/gcc/testsuite/g++.dg/expr/string-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/38648] [4.2/4.3 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-01-10 11:49 ` jakub at gcc dot gnu dot org
@ 2009-01-10 11:51 ` jakub at gcc dot gnu dot org
  2009-01-15 16:11 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-10 11:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2009-01-10 11:51 -------
Fixed on the trunk so far.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.3.3 4.3.0 4.1.1 4.3.0     |3.3.3 4.3.0 4.1.1 4.3.0
                   |4.4.0                       |
      Known to work|                            |4.4.0
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
                   |with string literal         |with string literal


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


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

* [Bug c++/38648] [4.2/4.3 regression] ICE with string literal
  2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-01-10 11:51 ` [Bug c++/38648] [4.2/4.3 " jakub at gcc dot gnu dot org
@ 2009-01-15 16:11 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-15 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-01-15 16:10 -------
Fixed for GCC 4.4.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|3.3.3 4.3.0 4.1.1 4.3.0     |3.3.3 4.3.0 4.1.1 4.3.0
                   |                            |4.3.2
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.4.0


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


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

end of thread, other threads:[~2009-01-15 16:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-27 23:24 [Bug c++/38648] New: [4.2/4.3/4.4 regression] ICE with string literal reichelt at gcc dot gnu dot org
2008-12-27 23:25 ` [Bug c++/38648] " reichelt at gcc dot gnu dot org
2008-12-27 23:48 ` pinskia at gcc dot gnu dot org
2008-12-29 23:38 ` rguenth at gcc dot gnu dot org
2008-12-30  1:05 ` pinskia at gcc dot gnu dot org
2009-01-10 11:49 ` jakub at gcc dot gnu dot org
2009-01-10 11:51 ` [Bug c++/38648] [4.2/4.3 " jakub at gcc dot gnu dot org
2009-01-15 16:11 ` rguenth 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).