[PR26155] g++ crashes when trying to compile c++ header with namespace error
Bug #321883 reported by
Pauli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Fix Released
|
Medium
|
|||
gcc-4.3 (Ubuntu) |
Won't Fix
|
Low
|
Unassigned | ||
gcc-4.7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc-4.3
I tried to compile accidetaly file where I did something evil with namespaces
Basic idea is this header file:
#include <boost/
using namespace fs = boost::filesystem;
namespace fs {
// declare some extensions to boost filesystem
}
ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/lib/
Package: g++-4.3 4.3.2-1ubuntu11
SourcePackage: gcc-4.3
Uname: Linux 2.6.27-9-generic i686
Related branches
Changed in gcc: | |
status: | Unknown → Confirmed |
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Confirmed → In Progress |
Changed in gcc: | |
status: | In Progress → Fix Released |
Changed in gcc-4.7 (Ubuntu): | |
status: | New → Fix Committed |
Changed in gcc-4.3 (Ubuntu): | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
I thought this was filed before but I cannot find it. _gnu_debug: :debug’ not allowed here, assuming ‘std::__gnu_debug’ lookup. c:1372 gcc.gnu. org/bugs. html> for instructions.
Testcase:
namespace std
{
namespace __gnu_debug {
namespace debug = std::__gnu_debug;
namespace debug
{
-----
Error we get:
t.ii:6: error: namespace alias ‘std::_
t.ii:6: internal compiler error: in resume_scope, at cp/name-
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://