public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37389]  New: expected integer_cst, have error_mark in build_enumerator
@ 2008-09-05 22:29 doko at ubuntu dot com
  2008-09-05 22:30 ` [Bug c++/37389] " doko at ubuntu dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2008-09-05 22:29 UTC (permalink / raw)
  To: gcc-bugs

seen with 4.2.4, 4.3.2 and trunk 20080904

g++ -c -mtune=generic -g foo.ii

In file included from utNativePackedCoDec.cc:5:
../../src/pers/RecBuf.hh: At global scope:
../../src/pers/RecBuf.hh: In instantiation of
'pers::RecBuf<pers::NativePackedCoDec, long unsigned int>':
utNativePackedCoDec.cc:11:   instantiated from here
../../src/pers/RecBuf.hh:76: error: 'typename pers::NativePackedCoDec::Type'
names 'template<class T> struct pers::NativePackedCoDec::Type', which is not a
type
../../src/pers/RecBuf.hh:76: error: overflow in enumeration values at
'STRING_SZ'
../../src/pers/RecBuf.hh:76: error: 'typename pers::NativePackedCoDec::Type'
names 'template<class T> struct pers::NativePackedCoDec::Type', which is not a
type
../../src/pers/RecBuf.hh:76: internal compiler error: tree check: expected
integer_cst, have error_mark in build_enumerator, at cp/decl.c:11144
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
           Summary: expected integer_cst, have error_mark in
                    build_enumerator
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


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

* [Bug c++/37389] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
@ 2008-09-05 22:30 ` doko at ubuntu dot com
  2008-09-05 22:39 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2008-09-05 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from doko at ubuntu dot com  2008-09-05 22:29 -------
Created an attachment (id=16237)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16237&action=view)
preprocessed source


-- 


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


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

* [Bug c++/37389] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
  2008-09-05 22:30 ` [Bug c++/37389] " doko at ubuntu dot com
@ 2008-09-05 22:39 ` pinskia at gcc dot gnu dot org
  2008-09-09  1:55 ` [Bug c++/37389] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-05 22:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-09-05 22:37 -------
Confirmed reduced testcase:
enum { OFFSET_MAX = (9223372036854775807L * 2UL + 1UL) };
enum {
  OFFSET_MAX = OFFSET_MAX,
  STRING_SZ = CoDec::Type::FIXED_SIZE,
  STRING_DYN = CoDec::Type::DYN_PARTS,


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-05 22:37:42
               date|                            |


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


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

* [Bug c++/37389] [4.2/4.3/4.4 Regression] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
  2008-09-05 22:30 ` [Bug c++/37389] " doko at ubuntu dot com
  2008-09-05 22:39 ` pinskia at gcc dot gnu dot org
@ 2008-09-09  1:55 ` pinskia at gcc dot gnu dot org
  2008-09-09  8:00 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-09  1:55 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
      Known to work|                            |4.1.1
            Summary|expected integer_cst, have  |[4.2/4.3/4.4 Regression]
                   |error_mark in               |expected integer_cst, have
                   |build_enumerator            |error_mark in
                   |                            |build_enumerator
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/37389] [4.2/4.3/4.4 Regression] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
                   ` (2 preceding siblings ...)
  2008-09-09  1:55 ` [Bug c++/37389] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-09-09  8:00 ` jakub at gcc dot gnu dot org
  2008-09-09 19:19 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09  8:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-09-09 07:58 -------
Mine.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |09/msg00673.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-09-05 22:37:42         |2008-09-09 07:58:52
               date|                            |


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


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

* [Bug c++/37389] [4.2/4.3/4.4 Regression] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
                   ` (3 preceding siblings ...)
  2008-09-09  8:00 ` jakub at gcc dot gnu dot org
@ 2008-09-09 19:19 ` jakub at gcc dot gnu dot org
  2008-09-09 20:25 ` [Bug c++/37389] [4.2/4.3 " jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09 19:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-09-09 19:18 -------
Subject: Bug 37389

Author: jakub
Date: Tue Sep  9 19:16:49 2008
New Revision: 140165

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140165
Log:
        PR c++/37389
        * decl.c (build_enumerator): Handle previous value's DECL_INITIAL
        being error_operand_p.  Don't clear value if it was error_mark_node.

        * g++.dg/parse/enum4.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/enum4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37389] [4.2/4.3 Regression] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
                   ` (4 preceding siblings ...)
  2008-09-09 19:19 ` jakub at gcc dot gnu dot org
@ 2008-09-09 20:25 ` jakub at gcc dot gnu dot org
  2008-09-09 20:26 ` jakub at gcc dot gnu dot org
  2009-04-29 15:17 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09 20:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-09-09 20:24 -------
Subject: Bug 37389

Author: jakub
Date: Tue Sep  9 20:23:08 2008
New Revision: 140171

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140171
Log:
        PR c++/37389
        * decl.c (build_enumerator): Handle previous value's DECL_INITIAL
        being error_operand_p.

        * g++.dg/parse/enum4.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/enum4.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/decl.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/37389] [4.2/4.3 Regression] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
                   ` (5 preceding siblings ...)
  2008-09-09 20:25 ` [Bug c++/37389] [4.2/4.3 " jakub at gcc dot gnu dot org
@ 2008-09-09 20:26 ` jakub at gcc dot gnu dot org
  2009-04-29 15:17 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-09 20:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2008-09-09 20:25 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/37389] [4.2/4.3 Regression] expected integer_cst, have error_mark in build_enumerator
  2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
                   ` (6 preceding siblings ...)
  2008-09-09 20:26 ` jakub at gcc dot gnu dot org
@ 2009-04-29 15:17 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-29 15:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.5                       |4.3.3


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


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

end of thread, other threads:[~2009-04-29 15:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-05 22:29 [Bug c++/37389] New: expected integer_cst, have error_mark in build_enumerator doko at ubuntu dot com
2008-09-05 22:30 ` [Bug c++/37389] " doko at ubuntu dot com
2008-09-05 22:39 ` pinskia at gcc dot gnu dot org
2008-09-09  1:55 ` [Bug c++/37389] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
2008-09-09  8:00 ` jakub at gcc dot gnu dot org
2008-09-09 19:19 ` jakub at gcc dot gnu dot org
2008-09-09 20:25 ` [Bug c++/37389] [4.2/4.3 " jakub at gcc dot gnu dot org
2008-09-09 20:26 ` jakub at gcc dot gnu dot org
2009-04-29 15:17 ` pinskia 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).