This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34774] [4.1/4.2/4.3 Regression] templates, enumerations, overflow, ice
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2008 12:35:51 -0000
- Subject: [Bug c++/34774] [4.1/4.2/4.3 Regression] templates, enumerations, overflow, ice
- References: <bug-34774-9709@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from rguenth at gcc dot gnu dot org 2008-01-14 12:35 -------
The testcase in comment #3 looks valid(?), at least EDG accepts it. The
problem is we try to fold_non_dependent_expr
n = n0 > max_shift ? max_shift : n0,
but substituting n0 makes this expression dependent and we leak template
param lists to fold.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-invalid-code |ice-on-valid-code
Priority|P4 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34774