[PR37389] Overflow in enumeration

Bug #252301 reported by Marcus Perlick
2
Affects Status Importance Assigned to Milestone
gcc
Fix Released
Low
gcc-4.2 (Ubuntu)
Won't Fix
Low
Unassigned
gcc-4.3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gcc-4.2

I intentionally instantiated a nested template class without parameter to produce an error message. This nested template "pers::NativePackedCoDec::Type" should contain an enum value which i wanted to use to define another enum value. See attached preprocessor output line 39920. I didn't yet test what happens, when I put the template parameter into the right place:
"STRING_SZ = CoDec::Type::FIXED_SIZE" --> "STRING_SZ = CoDec::Type<Offset>::FIXED_SIZE"

ProblemType: Crash
Architecture: amd64
Date: Sun Jul 27 13:06:02 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/lib/gcc/x86_64-linux-gnu/4.2.3/cc1plus
NonfreeKernelModules: nvidia
Package: g++-4.2 4.2.3-2ubuntu7
PackageArchitecture: amd64
SourcePackage: gcc-4.2
Uname: Linux 2.6.24-19-generic x86_64

Tags: apport-crash
Revision history for this message
Marcus Perlick (marcus-fractalqb) wrote :
Revision history for this message
Matthias Klose (doko) wrote : Re: Overflow in enumeration

seen as well with 4.3.2 and trunk 20080904

Changed in gcc-4.2:
importance: Undecided → Low
status: New → Triaged
Changed in gcc:
status: Unknown → New
Changed in gcc:
status: New → Confirmed
Changed in gcc:
status: Confirmed → In Progress
Changed in gcc:
status: In Progress → Fix Released
Matthias Klose (doko)
Changed in gcc-4.3:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-4.3 - 4.3.2-1ubuntu7

---------------
gcc-4.3 (4.3.2-1ubuntu7) intrepid; urgency=low

  * Update to SVN 20080912 from the gcc-4_3-branch.
    - PR rtl-optimization/37408 (wrong code), PR tree-optimization/36630,
      PR c++/37389 (LP: #252301), PR fortran/37199.
  * Remove obsolete patches: ada-driver.dpatch, pr33148.dpatch.

 -- Matthias Klose <email address hidden> Fri, 12 Sep 2008 12:27:57 +0200

Changed in gcc-4.3:
status: In Progress → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

fixed in gcc-4.3, won't fix in gcc-4.2.

Changed in gcc-4.2:
status: Triaged → Won't Fix
Changed in gcc:
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.