public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* middle-end/8807: GCC 3.2 generates ICE compiling code involving pointer to member function
@ 2002-12-04  7:36 smunday
  0 siblings, 0 replies; only message in thread
From: smunday @ 2002-12-04  7:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8807
>Category:       middle-end
>Synopsis:       GCC 3.2 generates ICE compiling code involving pointer to member function
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 04 07:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon Munday
>Release:        3.2
>Organization:
>Environment:
OS: Linux 2.4.7-10
Architecture: i686

>Description:
gcc ptrtofn.cpp
ptrtofn.cpp: In function `int main()':
ptrtofn.cpp:11: Internal compiler error in resolve_offset_ref, at cp/init.c:
   1886
>How-To-Repeat:
class sampleClass
{
 public:
  void sampleFunc(){}
};

int main()
{
  sampleClass sampleObj;
  void (sampleClass::*fptr)();
  fptr = &(sampleClass::sampleFunc);
  (sampleObj.*fptr)();   
  return 0;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-04 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-04  7:36 middle-end/8807: GCC 3.2 generates ICE compiling code involving pointer to member function smunday

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).