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++/13494] New: ICE on bidimensional array subscription in template function.


Oddly, this ICE goes away if the function isn't a template
or if the array has a single dimension.

template<typename T>
int foo(int d[][4])
{
        return d[0][0];
}

/gccbug.cpp:4: internal compiler error: in cxx_incomplete_type_diagnostic, at
cp/typeck2.c:273

-- 
           Summary: ICE on bidimensional array subscription in template
                    function.
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bernie at develer dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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