Compiling this code:
    namespace A { } ;
    int (A::*B)();
With this command:
    g++ --version ; g++ -c test-bug-1.cc
Produces this output:
    g++ (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
    Copyright (C) 2005 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    test-bug-1.cc:3: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    For Debian GNU/Linux specific bug reporting instructions,
    see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

NOTE: I don't know if this is the most up-to-date version of the compiler; it
is the one that is distributed with my operating system.  I tried searching
existing bugs but didn't see this one; my apologies if it has already been
reported and/or fixed.


-- 
           Summary: Invalid namespace pointer seg fault
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bugzilla at meta-dynamic dot com


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

Reply via email to