Mailinglist Archive: opensuse-packaging (208 mails)
| < Previous | Next > |
Re: [opensuse-packaging] gcc-4.7 and diclaration
- From: Claudio Freire <klaussfreire@xxxxxxxxx>
- Date: Wed, 2 May 2012 02:01:04 -0300
- Message-id: <CAGTBQpYoycFXpEN=be0hugHXn1s3Uo8v4GPNN3o_7C5XEkQUbg@mail.gmail.com>
On Wed, May 2, 2012 at 1:50 AM, Ilya Chernykh <anixxsus@xxxxxxxxx> wrote:
Notice that tstring.h, according to the error message, is being
included by utility at line 72.
I'd call it a bug in gcc's stdlib. Those errors aren't considered by
the compiler until you invoke the offending code, so it could explain
why it got past gcc's tests.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
tstring.h:102:3: error: 'make_pair' was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
In file included from /usr/include/c++/4.7/utility:72:0,
from /usr/include/c++/4.7/algorithm:61,
from expander.cpp:13:
/usr/include/c++/4.7/bits/stl_pair.h:284:5: note: 'template<class _T1, class
_T2> std::pair<_T1, _T2> std::make_pair(_T1, _T2)' declared here, later in
the translation unit
===
But file "#include <utility>" (from which stl_pair is included) is included
in the very beginning of tstring.h. I wonder why the compiler says it is
included later if it is in the very beginning.
Notice that tstring.h, according to the error message, is being
included by utility at line 72.
I'd call it a bug in gcc's stdlib. Those errors aren't considered by
the compiler until you invoke the offending code, so it could explain
why it got past gcc's tests.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
| < Previous | Next > |