public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13104] New: Internal compiler error in resolve_offset_ref
@ 2003-11-18 12:18 globos at freesurf dot fr
  2003-11-18 12:21 ` [Bug c++/13104] " globos at freesurf dot fr
  2003-11-18 16:45 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: globos at freesurf dot fr @ 2003-11-18 12:18 UTC (permalink / raw)
  To: gcc-bugs

On Windows XP, using cygwin, each time i try to compile this source code :


#include <iostream>

class A
{
public:
  A () { }
  void fuck () { }
};

int main ()
{
  std::cout << &(A::fuck) << std::endl;
  return 0;
}


g++ complains of :
In function 'int main()'
12: Internal compiler error in resolve_offset_ref
   , at cP/init.c:1886

-- 
           Summary: Internal compiler error in resolve_offset_ref
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: globos at freesurf dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/13104] Internal compiler error in resolve_offset_ref
  2003-11-18 12:18 [Bug c++/13104] New: Internal compiler error in resolve_offset_ref globos at freesurf dot fr
@ 2003-11-18 12:21 ` globos at freesurf dot fr
  2003-11-18 16:45 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: globos at freesurf dot fr @ 2003-11-18 12:21 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


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


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

* [Bug c++/13104] Internal compiler error in resolve_offset_ref
  2003-11-18 12:18 [Bug c++/13104] New: Internal compiler error in resolve_offset_ref globos at freesurf dot fr
  2003-11-18 12:21 ` [Bug c++/13104] " globos at freesurf dot fr
@ 2003-11-18 16:45 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 16:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-18 16:45 -------
The code is invalid, in 3.2.2 and on, GCC rejects it with
pr13104.cc: In function `int main()':
pr13104.cc:12: parenthesis around 'A::fuck()' cannot be used to form a 
   pointer-to-member-function

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|ice-on-valid-code           |ice-on-invalid-code
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2003-11-18 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-18 12:18 [Bug c++/13104] New: Internal compiler error in resolve_offset_ref globos at freesurf dot fr
2003-11-18 12:21 ` [Bug c++/13104] " globos at freesurf dot fr
2003-11-18 16:45 ` pinskia at gcc dot gnu dot org

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