Launchpad has imported 7 comments from the remote bug at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37389.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://documentation.ubuntu.com/launchpad/user/reference/bugs/multi-project-bugs/about-multi-project-bugs/#bugs-in-external-trackers.

------------------------------------------------------------------------
On 2008-09-05T22:28:32+00:00 Matthias Klose wrote:

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.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/2

------------------------------------------------------------------------
On 2008-09-05T22:29:05+00:00 Matthias Klose wrote:

Created attachment 16237
preprocessed source

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/3

------------------------------------------------------------------------
On 2008-09-05T22:37:42+00:00 Pinskia wrote:

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,


Reply at: 
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/5

------------------------------------------------------------------------
On 2008-09-09T07:58:52+00:00 Jakub-gcc wrote:

Mine.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/6

------------------------------------------------------------------------
On 2008-09-09T19:18:11+00:00 Jakub-gcc wrote:

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


Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/7

------------------------------------------------------------------------
On 2008-09-09T20:24:30+00:00 Jakub-gcc wrote:

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


Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/8

------------------------------------------------------------------------
On 2008-09-09T20:25:32+00:00 Jakub-gcc wrote:

Fixed.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.2/+bug/252301/comments/9

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/252301

Title:
  [PR37389] Overflow in enumeration

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/252301/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to