This is the mail archive of the gcc-prs@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]

c++/6863: __gnu_cxx::hash_map as declarator



>Number:         6863
>Category:       c++
>Synopsis:       compiler crash
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed May 29 16:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Eric McWhorter
>Release:        3.1
>Organization:
California Institute of Technology - LIGO
>Environment:
System: Linux ldas-pctest1 2.4.9-12smp #1 SMP Tue Oct 30 18:16:48 EST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.1/configure --enable-shared --enable-threads=posix --prefix=/usr1/lcldsk/gcc-install
>Description:

Compiling this code yields an erroneous error message:

#include<iostream>
#include<ext/hash_map>
#include<string>

namespace foo {
#if __FOOC__ == 3
  typedef __gnu_cxx::hash_map hash_map;
#else
  typedef std::hash_map hash_map;
#endif
};

int main( int argc, char **argv ) {

  foo::hash_map<std::string, std::string> my_hash_map;
}

>How-To-Repeat:

g++ -c -D__FOOC__=3 hash_map.cc
hash_map.cc:7: `template<class _Key, class _Tp, class _HashFcn, class
   _EqualKey, class _Alloc> class __gnu_cxx::hash_map' as declarator
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


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