g++ crash after template errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.2 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc-4.2
Apport tells me to report this, so I do! I have to say I don't care - it gives me enough error messages before crashing, I'm sure I can fix them and get it to compile (or work out why what I'm trying to do is impossible :).
gateImpl.cpp:143: error: template definition of non-template ‘typename<
gateImpl.cpp:287: error: ‘<unnamed>
gateImpl.cpp:287: error: invalid type in declaration before ‘;’ token
gateImpl.cpp:291: error: expected initializer before ‘factory’
gateImpl.cpp:292: error: ‘factory’ was not declared in this scope
gateImpl.cpp:297: error: redefinition of ‘class<
gateImpl.cpp:281: error: previous definition of ‘class<
gateImpl.cpp:303: error: redefinition of ‘const char <unnamed>
gateImpl.cpp:289: error: ‘const char <unnamed>
gateImpl.cpp:305: error: conflicting declaration ‘typedef class<unnamed>
gateImpl.cpp:287: error: ‘<unnamed>
gateImpl.cpp:306: error: expected initializer before ‘&’ token
gateImpl.cpp:250: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/cc8rgSdf.out file, please attach this to your bugreport.
make: *** [gateImpl.o] Error 1
ProblemType: Crash
Architecture: amd64
Date: Mon Nov 24 13:56:22 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/lib/
Package: g++-4.2 4.2.4-1ubuntu3
PackageArchitec
SourcePackage: gcc-4.2
Uname: Linux 2.6.28-
I reduced some of the extraneous errors, try this one instead.
g++ -c -g -Wall -ansi -m32 -Os -o gateImpl.o gateImpl.cpp ::Gates: :BUFFER: :factory_ fwd’ is not a valid template argument because ‘<unnamed> ::Gates: :BUFFER: :factory_ fwd’ is a variable, not the address of a variable
gateImpl.cpp:283: error: ‘<unnamed>
gateImpl.cpp:283: error: invalid type in declaration before ‘;’ token
gateImpl.cpp:287: error: expected initializer before ‘factory’
gateImpl.cpp:288: error: ‘factory’ was not declared in this scope
gateImpl.cpp:246: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccr4gRHa.out file, please attach this to your bugreport.
make: *** [gateImpl.o] Error 1