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++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46129

           Summary: ICE: in tsubst_copy, at cp/pt.c:11375
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


The following code recently (sometime in October) started failing to compile
with:

Sqrt_extension.cpp: In member function âvoid
Scalar_factor_traits<T>::Scalar_factor::operator()(const Gmpz&) [with T =
int]â:
Sqrt_extension.cpp:15:7: internal compiler error: in tsubst_copy, at
cp/pt.c:11375
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


class Gmpz { };

template <class T>
struct Scalar_factor_traits {
    struct Scalar_factor
    {
        void operator () (const Gmpz& d_ = Gmpz() ) { }
    };
};

void scalar_factor_traits_test(){
    {
        typedef Scalar_factor_traits<int> SFT;
        SFT::Scalar_factor sfac;
        sfac();
    }
}


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