[Bug c++/25625] New: Fails to compile C++ code when -frepo is specified.
rleigh at debian dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 1 17:59:00 GMT 2006
Compiling with the attached testcase:
$ g++ -frepo -c test.cc
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::integral_c<unsigned int, 0u>âÂÂ:
/usr/include/boost/type_traits/integral_constant.hpp:21: instantiated from
âÂÂboost::integral_constant<unsigned int, 0u>âÂÂ
/usr/include/boost/type_traits/alignment_of.hpp:81: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:72: error: âÂÂ(((unsigned
int)mpl_::integral_c<unsigned int, 0u>::value) + 1u)â is not a valid template
argument for type âÂÂunsigned intâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::integral_c<unsigned int, 0u>âÂÂ:
/usr/include/boost/type_traits/integral_constant.hpp:21: instantiated from
âÂÂboost::integral_constant<unsigned int, 0u>âÂÂ
/usr/include/boost/type_traits/alignment_of.hpp:81: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:73: error: âÂÂ(((unsigned
int)mpl_::integral_c<unsigned int, 0u>::value) - 1u)â is not a valid template
argument for type âÂÂunsigned intâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::int_<3>âÂÂ:
/usr/include/boost/mpl/if.hpp:131: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:72: error:
âÂÂ(((int)mpl_::int_<3>::value) + 1)â is not a valid template argument for
type âÂÂintâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::int_<3>âÂÂ:
/usr/include/boost/mpl/if.hpp:131: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:73: error:
âÂÂ(((int)mpl_::int_<3>::value) - 1)â is not a valid template argument for
type âÂÂintâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::int_<-0x00000000000000001>âÂÂ:
/usr/include/boost/mpl/if.hpp:131: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:72: error:
âÂÂ(((int)mpl_::int_<-0x00000000000000001>::value) + 1)â is not a valid
template argument for type âÂÂintâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::int_<-0x00000000000000001>âÂÂ:
/usr/include/boost/mpl/if.hpp:131: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:73: error:
âÂÂ(((int)mpl_::int_<-0x00000000000000001>::value) - 1)â is not a valid
template argument for type âÂÂintâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::int_<1>âÂÂ:
/usr/include/boost/mpl/not.hpp:47: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:72: error:
âÂÂ(((int)mpl_::int_<1>::value) + 1)â is not a valid template argument for
type âÂÂintâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::int_<1>âÂÂ:
/usr/include/boost/mpl/not.hpp:47: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:73: error:
âÂÂ(((int)mpl_::int_<1>::value) - 1)â is not a valid template argument for
type âÂÂintâ because it is a non-constant expression
/usr/include/boost/mpl/if.hpp: In instantiation of
âÂÂboost::mpl::if_<boost::integral_constant<bool, false>,
boost::optional_detail::types_when_is_ref<std::locale>,
boost::optional_detail::types_when_isnt_ref<std::locale> >âÂÂ:
/usr/include/boost/optional/optional.hpp:152: instantiated from
âÂÂboost::optional_detail::optional_base<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:407: instantiated from
âÂÂboost::optional<std::locale>âÂÂ
/usr/include/boost/format/internals.hpp:56: instantiated from here
/usr/include/boost/mpl/if.hpp:67: error: âÂÂmpl_::bool_<false>::valueâ is not
a valid template argument for type âÂÂboolâ because it is a non-constant
expression
/usr/include/boost/mpl/if.hpp: In instantiation of
âÂÂboost::mpl::if_<boost::integral_constant<bool, false>,
boost::optional_detail::types_when_is_ref<std::locale>,
boost::optional_detail::types_when_isnt_ref<std::locale> >âÂÂ:
/usr/include/boost/optional/optional.hpp:152: instantiated from
âÂÂboost::optional_detail::optional_base<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:407: instantiated from
âÂÂboost::optional<std::locale>âÂÂ
/usr/include/boost/format/internals.hpp:56: instantiated from here
/usr/include/boost/mpl/if.hpp:70: error: âÂÂmpl_::bool_<false>::valueâ is not
a valid template argument for type âÂÂboolâ because it is a non-constant
expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::integral_c<unsigned int, 4u>âÂÂ:
/usr/include/boost/type_traits/integral_constant.hpp:21: instantiated from
âÂÂboost::integral_constant<unsigned int, 4u>âÂÂ
/usr/include/boost/type_traits/alignment_of.hpp:61: instantiated from
âÂÂboost::alignment_of<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:97: instantiated from
âÂÂboost::optional_detail::aligned_storage<std::locale>::dummy_uâÂÂ
/usr/include/boost/optional/optional.hpp:98: instantiated from
âÂÂboost::optional_detail::aligned_storage<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:400: instantiated from
âÂÂboost::optional_detail::optional_base<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:407: instantiated from
âÂÂboost::optional<std::locale>âÂÂ
/usr/include/boost/format/internals.hpp:56: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:72: error: âÂÂ(((unsigned
int)mpl_::integral_c<unsigned int, 4u>::value) + 1u)â is not a valid template
argument for type âÂÂunsigned intâ because it is a non-constant expression
/usr/include/boost/mpl/aux_/integral_wrapper.hpp: In instantiation of
âÂÂmpl_::integral_c<unsigned int, 4u>âÂÂ:
/usr/include/boost/type_traits/integral_constant.hpp:21: instantiated from
âÂÂboost::integral_constant<unsigned int, 4u>âÂÂ
/usr/include/boost/type_traits/alignment_of.hpp:61: instantiated from
âÂÂboost::alignment_of<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:97: instantiated from
âÂÂboost::optional_detail::aligned_storage<std::locale>::dummy_uâÂÂ
/usr/include/boost/optional/optional.hpp:98: instantiated from
âÂÂboost::optional_detail::aligned_storage<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:400: instantiated from
âÂÂboost::optional_detail::optional_base<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:407: instantiated from
âÂÂboost::optional<std::locale>âÂÂ
/usr/include/boost/format/internals.hpp:56: instantiated from here
/usr/include/boost/mpl/aux_/integral_wrapper.hpp:73: error: âÂÂ(((unsigned
int)mpl_::integral_c<unsigned int, 4u>::value) - 1u)â is not a valid template
argument for type âÂÂunsigned intâ because it is a non-constant expression
/usr/include/boost/optional/optional.hpp: In instantiation of
âÂÂboost::optional_detail::aligned_storage<std::locale>::dummy_uâÂÂ:
/usr/include/boost/optional/optional.hpp:98: instantiated from
âÂÂboost::optional_detail::aligned_storage<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:400: instantiated from
âÂÂboost::optional_detail::optional_base<std::locale>âÂÂ
/usr/include/boost/optional/optional.hpp:407: instantiated from
âÂÂboost::optional<std::locale>âÂÂ
/usr/include/boost/format/internals.hpp:56: instantiated from here
/usr/include/boost/optional/optional.hpp:97: error:
âÂÂmpl_::integral_c<unsigned int, 4u>::valueâ is not a valid template
argument for type âÂÂunsigned intâ because it is a non-constant expression
/usr/include/boost/format/internals.hpp: In member function âÂÂvoid
boost::io::detail::stream_format_state<Ch, Tr>::apply_on(std::basic_ios<_CharT,
_Traits>&, boost::io::detail::locale_t*) constâÂÂ:
/usr/include/boost/format/internals.hpp:119: error: âÂÂconst class
boost::optional<std::locale>â has no member named âÂÂgetâÂÂ
/usr/include/boost/format/format_implementation.hpp: In member function
âÂÂboost::io::detail::locale_t boost::basic_format<Ch, Tr, Alloc>::getloc()
constâÂÂ:
/usr/include/boost/format/format_implementation.hpp:56: error: âÂÂconst class
boost::optional<std::locale>â has no member named âÂÂgetâÂÂ
/usr/include/boost/optional/optional.hpp: In member function âÂÂvoid
boost::optional_detail::optional_base<T>::destroy_impl(mpl_::false_) [with T =
std::locale]âÂÂ:
/usr/include/boost/optional/optional.hpp:362: instantiated from âÂÂvoid
boost::optional_detail::optional_base<T>::destroy() [with T = std::locale]âÂÂ
/usr/include/boost/optional/optional.hpp:208: instantiated from
âÂÂboost::optional_detail::optional_base<T>::~optional_base() [with T =
std::locale]âÂÂ
/usr/include/boost/optional/optional.hpp:471: instantiated from
âÂÂboost::optional<T>::~optional() [with T = std::locale]âÂÂ
/usr/include/boost/format/format_fwd.hpp:30: instantiated from here
/usr/include/boost/optional/optional.hpp:388: error: âÂÂget_ptr_implâ was not
declared in this scope
--
Summary: Fails to compile C++ code when -frepo is specified.
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rleigh at debian dot org
GCC build triplet: powerpc-unknown-linux-gnu
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25625
More information about the Gcc-bugs
mailing list