Infinite loop printing "warning: missing braces around initializer" in g++
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
Fix Released
|
Low
|
Michael Collison | ||
gcc |
Fix Released
|
Medium
|
|||
gcc-4.6 (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When compiling the attached malformed file with g++ -Wall, an infinite loop is entered that repeatedly prints the following message:
g++fail.cc:3:25: warning: missing braces around initializer for ‘char [0]’ [-Wmissing-braces]
This affects all versions of gcc installed on the machine: 4.4, 4.5, and 4.6. The expected behavior is that the warning is printed once, then g++ exits (clang behaves as expected).
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: g++-4.6 4.6.1-9ubuntu3
ProcVersionSign
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Mar 1 22:40:39 2012
ExecutablePath: /usr/bin/g++-4.6
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
SourcePackage: gcc-4.6
UpgradeStatus: Upgraded to oneiric on 2011-11-09 (114 days ago)
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gcc: | |
status: | New → Fix Released |
confirmed. the fsf releases don't print anything, but don't terminate either. I see the repeated error message for Linaro builds only