------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-31 18:07 -------
This happens also with non templates:
s/template <class T> struct BitPattern {/typedef long long T; struct BitPattern
{/

:).

Note 4.1.1 did not warn in either place.  I don't know if we should be warning
in both or none so I am not going to mark this as a regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-31 18:07:33
               date|                            |
            Summary|Inconsistent warning for    |Inconsistent warning for
                   |compile-time integer        |compile-time integer
                   |overflow                    |overflow in struct compared
                   |                            |to toplevel


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

Reply via email to