This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48224] New: ERROR: compile in g++ version 4.5


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]