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++/14106] New: ICE on template func instanciation: stor-layout.c:1569


//
//    2004-02-11 gcc 3.3.2
//

// gcc-3.3.2-20040211.cc: In function `void instanciate() [with T = float]':
// gcc-3.3.2-20040211.cc:15:   instantiated from here
// gcc-3.3.2-20040211.cc:13: internal compiler error: in layout_type, at 
//    stor-layout.c:1569
// Please submit a full bug report,
// with preprocessed source if appropriate.
// See <URL:http://gcc.gnu.org/bugs.html> for instructions.

template<class T>
void j (T i)
{
}

template<typename T>
void instanciate () {
   static void (*fp) (T) = j;
   __typeof__ (j) *p;
}
template void instanciate<float>();

-- 
           Summary: ICE on template func instanciation: stor-layout.c:1569
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bug at vogtner dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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