This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34774] [4.1/4.2/4.3 Regression] templates, enumerations, overflow, ice



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]