This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14793] New: ice when using two namespaces (wrong code)


the compiler crashes with this simple code:  
 
 
 
namespace teste{ 
 
int main( ){ 
	std::teste; 
	return 0; 
} 
 
} 
 
 
 
 
 filipezf@filipe:~/cpp/bug> g++ -v o Teste Main.cpp 
g++: o: Arquivo ou diret?rio n?o encontrado 
g++: Teste: Arquivo ou diret?rio n?o encontrado 
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs 
gcc version 2.95.3 20010315 (SuSE) 
 /usr/lib/gcc-lib/i486-suse-linux/2.95.3/cpp0 -lang-c++ -v -D__GNUC__=2 
-D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ 
-Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux 
-Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 
-D__i386__ -Di486 -D__i486 -D__i486__ Main.cpp /tmp/cciCGpMA.ii 
GNU CPP version 2.95.3 20010315 (SuSE) (i386 Linux/ELF) 
#include "..." search starts here: 
#include <...> search starts here: 
 /usr/include/g++ 
 /usr/local/include 
 /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include 
 /usr/include 
End of search list. 
The following default directories have been omitted from the search path: 
 /usr/lib/gcc-lib/i486-suse-linux/2.95.3/../../../../i486-suse-linux/include 
End of omitted list. 
 /usr/lib/gcc-lib/i486-suse-linux/2.95.3/cc1plus /tmp/cciCGpMA.ii -quiet 
-dumpbase Main.cc -version -o /tmp/ccc77bw1.s 
GNU C++ version 2.95.3 20010315 (SuSE) (i486-suse-linux) compiled by GNU C 
version 2.95.3 20010315 (SuSE). 
Main.cpp: In function `int teste::main()': 
Main.cpp:6: Internal compiler error. 
Main.cpp:6: Please submit a full bug report. 
Main.cpp:6: See <URL:http://www.gnu.org/software/gcc/bugs.html> for 
instructions.

-- 
           Summary: ice when using two namespaces (wrong code)
           Product: gcc
           Version: 2.95.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: filipezf at yahoo dot com dot br
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i486-suse-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]