public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/19209] New: libstdc++ tempers with user name space
@ 2004-12-30 14:55 gdr at gcc dot gnu dot org
  2004-12-30 15:01 ` [Bug libstdc++/19209] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-12-30 14:55 UTC (permalink / raw)
  To: gcc-bugs

Some uglifications are missing from current implementations
of the standard library

How to repeat:

% cat l.C && g++ l.C                                           
#define hook 1
#define unhook 0

#include <list>

int main()
{
   return 0;
}

/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:90:
error: expected unqualified-id before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:93:
error: expected unqualified-id before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:
In member function 'void std::list<_Tp,
_Alloc>::_M_insert(std::_List_iterator<_Tp>, const _Tp&)':
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:1150:
error: expected unqualified-id before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:1150:
error: expected `;' before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:
In member function 'void std::list<_Tp,
_Alloc>::_M_erase(std::_List_iterator<_Tp>)':
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:1157:
error: expected unqualified-id before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_list.h:1157:
error: expected `;' before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/list.tcc:
In member function 'typename std::list<_Tp, _Alloc>::iterator std::list<_Tp,
_Alloc>::insert(std::_List_iterator<_Tp>, const _Tp&)':
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/list.tcc:88:
error: expected unqualified-id before numeric constant
/home/gdr/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/list.tcc:88:
error: expected `;' before numeric constant

-- 
           Summary: libstdc++ tempers with user name space
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gdr at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: plateform independent


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/19209] [4.0 Regression] libstdc++ tempers with user name space
  2004-12-30 14:55 [Bug libstdc++/19209] New: libstdc++ tempers with user name space gdr at gcc dot gnu dot org
@ 2004-12-30 15:01 ` pinskia at gcc dot gnu dot org
  2004-12-30 15:09 ` [Bug libstdc++/19209] [3.4/4.0 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-30 15:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-30 15:01 -------
Confirmed, this is at least a 4.0 regression, 3.3.2 compiled  this just fine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.0
      Known to work|                            |3.3.2
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-30 15:01:10
               date|                            |
            Summary|libstdc++ tempers with user |[4.0 Regression] libstdc++
                   |name space                  |tempers with user name space
   Target Milestone|---                         |4.0.0


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/19209] [3.4/4.0 Regression] libstdc++ tempers with user name space
  2004-12-30 14:55 [Bug libstdc++/19209] New: libstdc++ tempers with user name space gdr at gcc dot gnu dot org
  2004-12-30 15:01 ` [Bug libstdc++/19209] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-12-30 15:09 ` pinskia at gcc dot gnu dot org
  2004-12-30 15:10 ` pinskia at gcc dot gnu dot org
  2004-12-30 15:16 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-30 15:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-30 15:08 -------
Hmm, the problem is in _List_node_base.
It was caused by:
2004-01-07  Gawain Bolton  <gp.bolton@computer.org>

        * include/bits/stl_list.h:
        * include/bits/list.tc:
        * src/list.cc:
        Performance enhancements for destructor, push_front(),
        push_back(), pop_front(), pop_back(), sort()
        Eliminated static_casts where possible.
        Moved code out of header files into new src/list.cc
        implementation file for library where possible.
        Remove inheritance from iterator class and create separate
        classes for non-constant and constant iterators.


Meaning that this is also a 3.4 regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at gcc dot gnu dot org
      Known to fail|4.0.0                       |4.0.0 3.4.0
            Summary|[4.0 Regression] libstdc++  |[3.4/4.0 Regression]
                   |tempers with user name space|libstdc++ tempers with user
                   |                            |name space


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/19209] [3.4/4.0 Regression] libstdc++ tempers with user name space
  2004-12-30 14:55 [Bug libstdc++/19209] New: libstdc++ tempers with user name space gdr at gcc dot gnu dot org
  2004-12-30 15:01 ` [Bug libstdc++/19209] [4.0 Regression] " pinskia at gcc dot gnu dot org
  2004-12-30 15:09 ` [Bug libstdc++/19209] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-12-30 15:10 ` pinskia at gcc dot gnu dot org
  2004-12-30 15:16 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-30 15:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |3.4.4


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/19209] [3.4/4.0 Regression] libstdc++ tempers with user name space
  2004-12-30 14:55 [Bug libstdc++/19209] New: libstdc++ tempers with user name space gdr at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-30 15:10 ` pinskia at gcc dot gnu dot org
@ 2004-12-30 15:16 ` pcarlini at suse dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pcarlini at suse dot de @ 2004-12-30 15:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pcarlini at suse dot de  2004-12-30 15:16 -------
Already fixed in the v7 branch, by the way.

*** This bug has been marked as a duplicate of 16896 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-30 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-30 14:55 [Bug libstdc++/19209] New: libstdc++ tempers with user name space gdr at gcc dot gnu dot org
2004-12-30 15:01 ` [Bug libstdc++/19209] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-12-30 15:09 ` [Bug libstdc++/19209] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-12-30 15:10 ` pinskia at gcc dot gnu dot org
2004-12-30 15:16 ` pcarlini at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).