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]

bug reported by the g++ compiler


version: 2.95.2
system: i686-redhat-linux
options: no option or -O or -O2 or -O3: different error from -g (also
included)
-------------------------------------------------------------------
error with no option/-O/-O2/-O3
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:
In instantiation of `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:196:
forming pointer to reference type `const Type &'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:197:
forming pointer to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:198:
forming reference to reference type `const Type &'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:199:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:
In instantiation of `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:355:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:361:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:701:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:720:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:743:
forming reference to reference type `const Type &'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:459:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:470:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:470:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::find(...)' has
already been declared in `hashtable<const int &,const int &,hash<const
int &>,_Identity<const int &>,equal_to<const int &>,allocator<const int
&> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:481:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:764:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:787:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:787:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::equal_range(...)' has
already been declared in `hashtable<const int &,const int &,hash<const
int &>,_Identity<const int &>,equal_to<const int &>,allocator<const int
&> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:814:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:520:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:525:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:530:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:530:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::_M_bkt_num_key(...)'
has already been declared in `hashtable<const int &,const int
&,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:535:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:535:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::_M_bkt_num(...)' has
already been declared in `hashtable<const int &,const int &,hash<const
int &>,_Identity<const int &>,equal_to<const int &>,allocator<const int
&> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:540:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:
In instantiation of `_Identity<const int &>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:239:
instantiated from `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:328:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:328:
`_Identity<const int &>::operator ()(...)' must be a nonstatic member
function
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:
In instantiation of `equal_to<const int &>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:239:
instantiated from `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:93:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:93:
`equal_to<const int &>::operator ()(...)' must be a nonstatic member
function
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:
In instantiation of `hash_set<const int &,hash<const int
&>,equal_to<const int &>,allocator<const int &> >':
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:64:
no type named `const_pointer' in `class hashtable<const int &,const int
&,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:65:
no type named `const_pointer' in `class hashtable<const int &,const int
&,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:66:
no type named `const_reference' in `class hashtable<const int &,const
int &,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:67:
no type named `const_reference' in `class hashtable<const int &,const
int &,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:157:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:173:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:179:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:181:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:184:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:186:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:
In instantiation of `_Hashtable_const_iterator<const int &,const int
&,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >':
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:124:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:125:
forming pointer to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:135:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:135:
`_Hashtable_const_iterator<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>::operator *(...)' must have an argument of class or enumerated type
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:135:
`_Hashtable_const_iterator<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>::operator *(...)' must take either one or two arguments
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:137:
forming pointer to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:137:
`_Hashtable_const_iterator<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>::operator ->(...)' must be a nonstatic member function
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:137:
`_Hashtable_const_iterator<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>::operator ->(...)' must take exactly one argument
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:
In instantiation of `hash_set<const int &,hash<const int
&>,equal_to<const int &>,allocator<const int &> >::find(...)':
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:179:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:
In function `{error} hash_set<const int &,hash<const int
&>,equal_to<const int &>,allocator<const int &> >::find(...)':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:179:
Internal compiler error in `layout_decl', at stor-layout.c:247
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
--------------------------------------------------------------------
error with -g option
sr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:
In instantiation of `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:196:
forming pointer to reference type `const Type &'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:197:
forming pointer to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:198:
forming reference to reference type `const Type &'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:199:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:
In instantiation of `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:355:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:361:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:701:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:720:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:743:
forming reference to reference type `const Type &'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:459:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:470:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:470:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::find(...)' has
already been declared in `hashtable<const int &,const int &,hash<const
int &>,_Identity<const int &>,equal_to<const int &>,allocator<const int
&> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:481:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:764:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:787:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:787:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::equal_range(...)' has
already been declared in `hashtable<const int &,const int &,hash<const
int &>,_Identity<const int &>,equal_to<const int &>,allocator<const int
&> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:814:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:520:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:525:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:530:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:530:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::_M_bkt_num_key(...)'
has already been declared in `hashtable<const int &,const int
&,hash<const int &>,_Identity<const int &>,equal_to<const int
&>,allocator<const int &> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:535:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:535:
`hashtable<const int &,const int &,hash<const int &>,_Identity<const int
&>,equal_to<const int &>,allocator<const int &> >::_M_bkt_num(...)' has
already been declared in `hashtable<const int &,const int &,hash<const
int &>,_Identity<const int &>,equal_to<const int &>,allocator<const int
&> >'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:540:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:
In instantiation of `_Identity<const int &>':
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hashtable.h:239:
instantiated from `hashtable<const int &,const int &,hash<const int
&>,_Identity<const int &>,equal_to<const int &>,allocator<const int &>
>'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_hash_set.h:57:
instantiated from `hash_set<const int &,hash<const int &>,equal_to<const
int &>,allocator<const int &> >'
hashTest.cc:15:   instantiated from here
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:328:
forming reference to reference type `const Type &const'
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:328:
`_Identity<const int &>::operator ()(...)' must be a nonstatic member
function
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3/stl_function.h:329:
confused by earlier errors, bailing out

hashTest.ii.bz2


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