public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11303] New: ICE in stor-layout.c:304 in int_mode_for_mode
@ 2003-06-24  5:41 pinskia at physics dot uc dot edu
  2003-07-05 20:11 ` [Bug target/11303] [3.3/3.4 regression] " dhazeghi at yahoo dot com
  0 siblings, 1 reply; 13+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-24  5:41 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE in stor-layout.c:304 in int_mode_for_mode
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at physics dot uc dot edu
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-apple-darwin6.6
OtherBugsDependingO 11026
             nThis:

A fall out from 11026:
Here is the shortest test case I could come up with that causes this ICE (fixing 
s_callbacks by adding & fixes the ICE:
template <class T>
struct test
{
  int run(int);

  typedef int (test<T>::*callback_type)(int);

  int c1(int);
  int c2(int);

  static callback_type s_callbacks[];
};

template <class T>
int test<T>::run(int i)
{
  callback_type c = s_callbacks[i];
  return (this->*c)(i);
}

template <class T>
typename test<T>::callback_type test<T>::s_callbacks[] =
{
  test<T>::c1,
  test<T>::c2,
};


int main()
{
  test<int> i;
  i.run(0);
  return 0;
}


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-04-27  6:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030624053547.11303.pinskia@gcc.gnu.org>
2003-12-05  2:17 ` [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode pinskia at gcc dot gnu dot org
2003-12-05  2:32 ` bangerth at dealii dot org
2003-12-05  2:33 ` bangerth at dealii dot org
2003-12-05 16:59 ` gdr at integrable-solutions dot net
2003-12-21 17:24 ` [Bug c++/11303] " pinskia at gcc dot gnu dot org
2003-12-26  1:23 ` pinskia at gcc dot gnu dot org
2003-12-30  1:10 ` pinskia at gcc dot gnu dot org
2004-01-14  4:20 ` giovannibajo at libero dot it
2004-01-24 15:54 ` [Bug c++/11303] [3.3 " pinskia at gcc dot gnu dot org
2004-01-28 18:50 ` austern at apple dot com
2004-02-15 12:34 ` gdr at gcc dot gnu dot org
2004-04-27  6:30 ` gdr at gcc dot gnu dot org
2003-06-24  5:41 [Bug target/11303] New: " pinskia at physics dot uc dot edu
2003-07-05 20:11 ` [Bug target/11303] [3.3/3.4 regression] " dhazeghi at yahoo dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).