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++/28897] New: internal compiler error: in instantiate_decl, at cp/pt.c:11731 // source in Description section


// /usr/libexec/gcc/i386-redhat-linux/4.1.0/cc1plus -fpreprocessed a.ii -quiet
-dumpbase a.cpp -mtune=generic -auxbase a -version -o - -frandom-seed=0
# 1 "a.cpp"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "a.cpp"
# 45 "a.cpp"
template<class A>
class B {
public:
 B() { i = 0; }
 A a;
 static int i;
};

template<class A>
int B<int>::i;

int main()
{
# 67 "a.cpp"
 B<int> b;

 return 0;
}


-- 
           Summary: internal compiler error: in instantiate_decl, at
                    cp/pt.c:11731 // source in Description section
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sbilyk at gmail dot com


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


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