public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29525] New: boost 1.34.0 (testing release) mpl multiset test fails to compile
@ 2006-10-20 14:13 gcc at derived-software dot ltd dot uk
2006-10-20 14:15 ` [Bug c++/29525] " gcc at derived-software dot ltd dot uk
2006-10-20 14:34 ` rguenth at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: gcc at derived-software dot ltd dot uk @ 2006-10-20 14:13 UTC (permalink / raw)
To: gcc-bugs
Attached is a preprocessed file that generates the following error (just the
first one of a group shown):
% g++ -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -D_GLIBCXX_DEBUG=1
-DBOOST_ALL_NO_LIB=1 -I. -c -o multiset.o libs/mpl/test/multiset.cpp
libs/mpl/test/multiset.cpp: In function 'void count_test() [with T =
test_data<boost::mpl::multiset0<0> >]':
libs/mpl/test/multiset.cpp:75: instantiated from here
libs/mpl/test/multiset.cpp:61: error:
'(((int)boost::mpl::count_impl<boost::mpl::aux::multiset_tag>::apply<boost::mpl::multiset0<0>,
int>::value) == 0)' is not a valid template argument for type 'bool' because it
is a non-constant expression
libs/mpl/test/multiset.cpp:61: error: no matching function for call to
'assertion_failed(mpl_::failed************ mpl_::assert_relation<equal, 0l,
0l>::************)'
...etc...
The (non-processed) line that causes this is:
{
MPL_ASSERT_RELATION( ( count<BOOST_DEDUCED_TYPENAME T::s0,int>::value ), ==, 0
);
//...
}
This problem also appears to exist on 4.0.3 and 4.1.0. (See, for example, the
reports on
http://engineering.meta-comm.com/boost-regression/CVS-RC_1_34_0/developer/mpl_release.html)
What is interesting(?) is that if the following line is inserted before the
MPL_ASSERT_RELATION line, then the error goes away:
enum { v1 = count<typename T::s0,int>::value };
--
Summary: boost 1.34.0 (testing release) mpl multiset test fails
to compile
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at derived-software dot ltd dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29525
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/29525] boost 1.34.0 (testing release) mpl multiset test fails to compile
2006-10-20 14:13 [Bug c++/29525] New: boost 1.34.0 (testing release) mpl multiset test fails to compile gcc at derived-software dot ltd dot uk
@ 2006-10-20 14:15 ` gcc at derived-software dot ltd dot uk
2006-10-20 14:34 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: gcc at derived-software dot ltd dot uk @ 2006-10-20 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from gcc at derived-software dot ltd dot uk 2006-10-20 14:15 -------
Created an attachment (id=12469)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12469&action=view)
gzip'd preprocessed output of libs/mpl/test/multiset.cpp from boost 1.34 branch
Generated with:
g++ -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -D_GLIBCXX_DEBUG=1
-DBOOST_ALL_NO_LIB=1 -I. libs/mpl/test/multiset.cpp -E >~/multiset.i
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29525
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/29525] boost 1.34.0 (testing release) mpl multiset test fails to compile
2006-10-20 14:13 [Bug c++/29525] New: boost 1.34.0 (testing release) mpl multiset test fails to compile gcc at derived-software dot ltd dot uk
2006-10-20 14:15 ` [Bug c++/29525] " gcc at derived-software dot ltd dot uk
@ 2006-10-20 14:34 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-20 14:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2006-10-20 14:34 -------
*** This bug has been marked as a duplicate of 29518 ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29525
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-20 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-20 14:13 [Bug c++/29525] New: boost 1.34.0 (testing release) mpl multiset test fails to compile gcc at derived-software dot ltd dot uk
2006-10-20 14:15 ` [Bug c++/29525] " gcc at derived-software dot ltd dot uk
2006-10-20 14:34 ` rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).