c++/9798: [<3.2,3.3,3.4> regression] Ininite recursion (segfault) in cp/decl.c:push_using_directive with recusive using directives

ehrhardt@mathematik.uni-ulm.de ehrhardt@mathematik.uni-ulm.de
Sun Feb 23 16:17:00 GMT 2003


Old Synopsis: g++: Internal error: Segmentation fault (program cc1plus)
New Synopsis: [<3.2,3.3,3.4> regression] Ininite recursion (segfault) in cp/decl.c:push_using_directive with recusive using directives

State-Changed-From-To: open->analyzed
State-Changed-By: cae
State-Changed-When: Sun Feb 23 16:17:14 2003
State-Changed-Why:
    Confirmed with 3.2.2, 3.3 and 3.4 trees. A reduced testcase is this:
    
    namespace std { }
    namespace STL { using namespace std; }
    namespace std {
      using namespace STL;
    }
    namespace STL {
      struct A {
        void B() { using namespace std; }
      };
    }
    
    The cc1plus binary either crashes with a segfault due to an infinite
    recursion in push_using_directive. This is a regression from 2.95.
    
       regards   Christian
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9798



More information about the Gcc-bugs mailing list