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++/23993] [4.0/4.1 Regression] Misterious compiler error when accessing a 2d-array in a template class


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-21 11:24 -------
Confirmed, reduced testcase:
const int data[2][4] = {
{0, 1, 2, 3}
};
template <typename T>
void t(int k) {
  int candidate = data[1][k];
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
      Known to fail|                            |4.1.0 4.0.2
      Known to work|                            |4.0.0 4.0.1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-21 11:24:24
               date|                            |
            Summary|Misterious compiler error   |[4.0/4.1 Regression]
                   |when accessing a 2d-array in|Misterious compiler error
                   |a template class            |when accessing a 2d-array in
                   |                            |a template class
   Target Milestone|---                         |4.0.2
            Version|4.0.1                       |4.0.2


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


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