public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11392] New: Generalisation of 8730 bug
@ 2003-07-01 16:38 ilgis at num dot uni-sb dot de
  2003-07-03 13:19 ` [Bug c/11392] " pinskia at physics dot uc dot edu
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: ilgis at num dot uni-sb dot de @ 2003-07-01 16:38 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Generalisation of 8730 bug
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ilgis at num dot uni-sb dot de
                CC: gcc-bugs at gcc dot gnu dot org

Dear All,

the following bug occoured

c.c: In function `two':
c.c:6: internal compiler error: in expand_expr, at expr.c:6866

when I compile the following example:

///////////////////////////////////////////
 void three(double *A);

 void one(int N1, int N2, int M, void *data)
 {
 void two(double D[N1][N2][N2])
 { three(D[M][0]);
   return;
 }
   two(data);
   return;
 }
//////////////////////////////////////////

If I remove 3-D arrays like:

//////////////////////////////////////////
 void three(double *A);

 void one(int N1, int N2, int M, void *data)
 {
 void two(double D[N1][N2])
 { three(D[M]);
   return;
 }
   two(data);
   return;
 }
/////////////////////////////////////////////

then it is Ok.

I tested it on gcc-3.3 release.

PS: when this bug will be fixed, please check 4 and more dimensional arrays to 
avoid a new bug report from me :)

Sincerely

Ilghiz


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

* [Bug c/11392] Generalisation of 8730 bug
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
@ 2003-07-03 13:19 ` pinskia at physics dot uc dot edu
  2003-07-07 13:58 ` [Bug c/11392] [3.3/3.4 Regression]Generalisation " pinskia at physics dot uc dot edu
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-03 13:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-03 13:19:32
               date|                            |
   Target Milestone|3.4                         |3.3.1


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-03 13:19 -------
I can confirmed it ICE in 3.0.4, mainline (20030702), 3.3.1 (20030616) and 3.2.3. GCC 
did not ICE in 2.95.3 so this is a regression.


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

* [Bug c/11392] [3.3/3.4 Regression]Generalisation of 8730 bug
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
  2003-07-03 13:19 ` [Bug c/11392] " pinskia at physics dot uc dot edu
@ 2003-07-07 13:58 ` pinskia at physics dot uc dot edu
  2003-07-12  0:01 ` steven at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-07 13:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-07 13:58 -------
It does not ICE on tree-ssa-branch.


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

* [Bug c/11392] [3.3/3.4 Regression]Generalisation of 8730 bug
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
  2003-07-03 13:19 ` [Bug c/11392] " pinskia at physics dot uc dot edu
  2003-07-07 13:58 ` [Bug c/11392] [3.3/3.4 Regression]Generalisation " pinskia at physics dot uc dot edu
@ 2003-07-12  0:01 ` steven at gcc dot gnu dot org
  2003-07-15 13:35 ` [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions pinskia at physics dot uc dot edu
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-07-12  0:01 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |8730


------- Additional Comments From steven at gcc dot gnu dot org  2003-07-12 00:01 -------
If this is a generalization of bug 8730 then it depends on it.


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (2 preceding siblings ...)
  2003-07-12  0:01 ` steven at gcc dot gnu dot org
@ 2003-07-15 13:35 ` pinskia at physics dot uc dot edu
  2003-07-18  3:25 ` mmitchel at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-15 13:35 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-15 13:35 -------
Acording to Phil's regression hunter, this has been failing since at least 2000-12-31 (the 
gcc earliest he has) so something before that makes this code ICE.


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (3 preceding siblings ...)
  2003-07-15 13:35 ` [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions pinskia at physics dot uc dot edu
@ 2003-07-18  3:25 ` mmitchel at gcc dot gnu dot org
  2003-10-16  9:42 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-18  3:25 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.1                       |3.3.2


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-07-18 03:25 -------
Postponed until GCC 3.3.2.  Nested functions are relatively rare.


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (4 preceding siblings ...)
  2003-07-18  3:25 ` mmitchel at gcc dot gnu dot org
@ 2003-10-16  9:42 ` mmitchel at gcc dot gnu dot org
  2003-12-12  9:40 ` ebotcazou at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-10-16  9:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.2                       |3.3.3


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-10-16 09:42 -------
Postponed until GCC 3.3.3.


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (5 preceding siblings ...)
  2003-10-16  9:42 ` mmitchel at gcc dot gnu dot org
@ 2003-12-12  9:40 ` ebotcazou at gcc dot gnu dot org
  2003-12-22  5:48 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-12  9:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-12-12 09:40 -------
It fails in all 3.x releases and I think it is not worth while to tweak the
middle-end on a release branch for such a pathological case.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.3                       |3.4


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


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (6 preceding siblings ...)
  2003-12-12  9:40 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-22  5:48 ` pinskia at gcc dot gnu dot org
  2004-01-11  0:39 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-22  5:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-22 05:31 -------
What is really funny is that this works:
 void three(double *A);

 void one(int N1, int N2, int M, void *data)
 {
 void two(double D[N1*N2*N2])
 { three(&D[M]);
   return;
 }
   two(data);
   return;
 }

-- 


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


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (7 preceding siblings ...)
  2003-12-22  5:48 ` pinskia at gcc dot gnu dot org
@ 2004-01-11  0:39 ` pinskia at gcc dot gnu dot org
  2004-01-12 23:39 ` steven at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11  0:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-11 00:39 -------
Nested functions should not hold up the branch of 3.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
   Target Milestone|3.4.0                       |3.4.1


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


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (8 preceding siblings ...)
  2004-01-11  0:39 ` pinskia at gcc dot gnu dot org
@ 2004-01-12 23:39 ` steven at gcc dot gnu dot org
  2004-01-13 16:44 ` steven at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-01-12 23:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-01-12 23:39 -------
Move back the target for all regressions from 3.4.1 to 3.4.0, as required by 
our bug management policy. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |3.4.0


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


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

* [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (9 preceding siblings ...)
  2004-01-12 23:39 ` steven at gcc dot gnu dot org
@ 2004-01-13 16:44 ` steven at gcc dot gnu dot org
  2004-01-24 15:28 ` [Bug c/11392] [3.3/3.4/3.5 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-01-13 16:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-01-13 16:44 -------
Nested function are not in C99.  They are a GNU extension.  Also nested 
functions are not necessary for numerical code.  Just don't nest the 
function.  This bug is not quite so critical as you want people to 
believe.  The problem is inconvenient for some, I'm sure, but if you want 
to be safe, just follow the standard. 
(You may even find out that it speeds up your code). 

-- 


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


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

* [Bug c/11392] [3.3/3.4/3.5 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (10 preceding siblings ...)
  2004-01-13 16:44 ` steven at gcc dot gnu dot org
@ 2004-01-24 15:28 ` pinskia at gcc dot gnu dot org
  2004-03-01  1:26 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-24 15:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-24 15:28 -------
Note this is fixed on the tree-ssa already.

-- 


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


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

* [Bug c/11392] [3.3/3.4/3.5 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (11 preceding siblings ...)
  2004-01-24 15:28 ` [Bug c/11392] [3.3/3.4/3.5 " pinskia at gcc dot gnu dot org
@ 2004-03-01  1:26 ` mmitchel at gcc dot gnu dot org
  2004-03-08 15:48 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-01  1:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-03-01 01:26 -------
Nested functions are not showstoppers, and this will be fixed in GCC 3.5, so I
have moved the target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.0                       |3.5.0


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


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

* [Bug c/11392] [3.3/3.4/3.5 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (12 preceding siblings ...)
  2004-03-01  1:26 ` mmitchel at gcc dot gnu dot org
@ 2004-03-08 15:48 ` pinskia at gcc dot gnu dot org
  2004-05-13 23:22 ` pinskia at gcc dot gnu dot org
  2005-09-05  7:21 ` [Bug c/11392] [3.3/3.4/4.0 " reichelt at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-08 15:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-08 15:48 -------
Suspending as this is fixed on the tree-ssa.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |SUSPENDED


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


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

* [Bug c/11392] [3.3/3.4/3.5 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (13 preceding siblings ...)
  2004-03-08 15:48 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 23:22 ` pinskia at gcc dot gnu dot org
  2005-09-05  7:21 ` [Bug c/11392] [3.3/3.4/4.0 " reichelt at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-13 23:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 13:23 -------
Fixed by the merge of the tree-ssa into the mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c/11392] [3.3/3.4/4.0 Regression]More trouble with nested functions
  2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
                   ` (14 preceding siblings ...)
  2004-05-13 23:22 ` pinskia at gcc dot gnu dot org
@ 2005-09-05  7:21 ` reichelt at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-05  7:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-09-05 07:20 -------
This seems to work now also on the 3.4 branch due to the
patch for PR22061.


-- 


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


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

end of thread, other threads:[~2005-09-05  7:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-01 16:38 [Bug c/11392] New: Generalisation of 8730 bug ilgis at num dot uni-sb dot de
2003-07-03 13:19 ` [Bug c/11392] " pinskia at physics dot uc dot edu
2003-07-07 13:58 ` [Bug c/11392] [3.3/3.4 Regression]Generalisation " pinskia at physics dot uc dot edu
2003-07-12  0:01 ` steven at gcc dot gnu dot org
2003-07-15 13:35 ` [Bug c/11392] [3.3/3.4 Regression]More trouble with nested functions pinskia at physics dot uc dot edu
2003-07-18  3:25 ` mmitchel at gcc dot gnu dot org
2003-10-16  9:42 ` mmitchel at gcc dot gnu dot org
2003-12-12  9:40 ` ebotcazou at gcc dot gnu dot org
2003-12-22  5:48 ` pinskia at gcc dot gnu dot org
2004-01-11  0:39 ` pinskia at gcc dot gnu dot org
2004-01-12 23:39 ` steven at gcc dot gnu dot org
2004-01-13 16:44 ` steven at gcc dot gnu dot org
2004-01-24 15:28 ` [Bug c/11392] [3.3/3.4/3.5 " pinskia at gcc dot gnu dot org
2004-03-01  1:26 ` mmitchel at gcc dot gnu dot org
2004-03-08 15:48 ` pinskia at gcc dot gnu dot org
2004-05-13 23:22 ` pinskia at gcc dot gnu dot org
2005-09-05  7:21 ` [Bug c/11392] [3.3/3.4/4.0 " reichelt 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).