Bug 183386
Summary: | Non-POD data in switch outside block causes internal compiler error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | David Resnick <lndresnick> |
Component: | gcc3 | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 3.2.3-54 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-03-15 17:22:52 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Resnick
2006-02-28 19:40:15 UTC
Can't reproduce with RHEL3 U7: g++ -v; g++ -Wall -o 183386{,.C}; echo $? Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54) 183386.C: In function `int main()': 183386.C:9: jump to case label 183386.C:7: crosses initialization of `std::string bar' 183386.C:9: warning: destructor needed for `std::string bar' 183386.C:9: warning: where case label appears here 183386.C:9: warning: (enclose actions of previous case statements requiring destructors in their own scope.) 1 |