This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48224] New: ERROR: compile in g++ version 4.5
- From: "evgenij.fokin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Mar 2011 19:13:02 +0000
- Subject: [Bug c++/48224] New: ERROR: compile in g++ version 4.5
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48224
Summary: ERROR: compile in g++ version 4.5
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: evgenij.fokin@gmail.com
Created attachment 23741
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23741
source files
I have found the code normal working with g++ version 4.4. After upgrade to
g++ version 4.5 I see "ERROR: compile".
I made simple code for demonstration this compile error. Look attached
files.
$ g++ compileError.cxx
In file included from /usr/include/c++/4.5/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.5/bits/stl_tree.h:62,
from /usr/include/c++/4.5/map:60,
from compileError.hxx:1,
from compileError.cxx:1:
/usr/include/c++/4.5/bits/stl_pair.h: In instantiation of
âstd::pair<const int, structure>â:
compileError.hxx:11:62: instantiated from here
/usr/include/c++/4.5/bits/stl_pair.h:77:11: error: âstd::pair<_T1,
_T2>::secondâ has incomplete type
compileError.hxx:3:8: error: forward declaration of âstruct structureâ
distcc[7487] ERROR: compile compileError.cxx on localhost failed
g++ installed from debian package "g++" version 4.5.2-4.