This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question/proposal for USE_MAPPED_LOCATION and Ada
- From: Steven Bosscher <stevenb at suse dot de>
- To: Robert Dewar <dewar at gnat dot com>, Joe Buck <Joe dot Buck at synopsys dot COM>
- Cc: Geert Bosch <bosch at gnat dot com>,Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>,gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Thu, 7 Oct 2004 01:15:36 +0200
- Subject: Re: Question/proposal for USE_MAPPED_LOCATION and Ada
- Organization: SUSE Labs
- References: <10410062023.AA16633@vlsi1.ultra.nyu.edu> <20041006155443.A20360@synopsys.com> <416479D0.4060504@gnat.com>
On Thursday 07 October 2004 01:03, Robert Dewar wrote:
> I would think so, but I am not aware of the capability in C++
> of having an error message refer to the template location and
> to chain of locations where the template is instantiated.
> Perhaps I just don't know :-)
C++ gives you something like this:
/usr/include/g++-2/stl_deque.h:747: warning: comparison between signed and unsigned
/usr/include/g++-2/stl_deque.h: In method `void deque<int,__default_alloc_template<true,0>,0>::reserve_map_at_front<int, alloc, 0>(unsigned int = 1)':
/usr/include/g++-2/stl_deque.h:1219: instantiated from `deque<int,__default_alloc_template<true,0>,0>::new_elements_at_front<int, alloc, 0>(unsigned int)'
/usr/include/g++-2/stl_deque.h:609: instantiated from `deque<int,__default_alloc_template<true,0>,0>::reserve_elements_at_front<int, alloc, 0>(unsigned int)'
/usr/include/g++-2/stl_deque.h:947: instantiated from `deque<int,__default_alloc_template<true,0>,0>::insert<__deque_iterator<int,const int &,const int &,0>>(__deque_iterator<int,int &,int *,0>, __deque_iterator<int,const int &,const int &,0>, __deque_iterator<int,const int &,const int &,0>, forward_iterator_tag)'
/usr/include/g++-2/stl_deque.h:508: instantiated from `deque<int,__default_alloc_template<true,0>,0>::insert<__deque_iterator<int,const int &,const int &,0>>(__deque_iterator<int,int &,int *,0>, __deque_iterator<int,const int &,const int &,0>, __deque_iterator<int,const int &,const int &,0>)'
/usr/include/g++-2/stl_deque.h:424: instantiated from `deque<int,__default_alloc_template<true,0>,0>::operator =<int, alloc, 0>(const deque<int,__default_alloc_template<true,0>,0> &)'
t.cc:3: instantiated from here
/usr/include/g++-2/stl_deque.h:638: warning: comparison between signed and unsigned
Is that what you mean with "chain of locations"?
Gr.
Steven