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++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482


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

           Summary: [4.6/4.7 Regression] [C++0x] internal compiler error:
                    in type_has_nontrivial_copy_init, at cp/tree.c:2482
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


template<typename> struct templ { };

typedef void (*F2)(...);

template<typename F, typename T>
struct S
{
    template<typename A>
        decltype( F()(T()) )
        f(A);
};

int main()
{
    S<F2, templ<int>>().f(0);
}

compiles ok with 4.5, ICE with 4.6.o 20110305


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