Bug 20241 - [4.0/4.1 Regression] ICEing with VLA in template that is type dependent
Summary: [4.0/4.1 Regression] ICEing with VLA in template that is type dependent
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks: C++VLA
  Show dependency treegraph
 
Reported: 2005-02-28 01:32 UTC by Andrew Pinski
Modified: 2016-03-04 04:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-02-28 01:32:50 UTC
The following "invalid" (well valid if we say that VLA is a GCC extension) ICE in fold_convert:
template<typename T> void foo(T t)
{
  int f[t];
}

Also we don't reject this with -pedantic in 2.95.3-3.4.0 either so that is not a regression.

There might be missing a processing_template somewhere.
Comment 1 Andrew Pinski 2005-02-28 01:36:40 UTC
Note this worked with 3.5.0 20040909.
Comment 2 Andrew Pinski 2005-02-28 01:49:01 UTC
And it fails with 20050113.  Those are the two closest compilers I have.
Comment 3 Wolfgang Bangerth 2005-02-28 15:35:41 UTC
This seems to work with the latest version I have, which is from 20050130. 
I don't know what's going on... 
 
W. 
Comment 4 Wolfgang Bangerth 2005-02-28 15:37:57 UTC
It also seems to be working with a snapshot from yesterday that I had on 
another machine. Andrew, can you double-check with something newer? 
 
W. 
Comment 5 Andrew Pinski 2005-02-28 15:47:43 UTC
It passes with 20041124.

Oh, it does pass with 20050225 so closing as fixed then.