public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14647] New: bit_vectors are broken (regression)
@ 2004-03-19  8:41 schmid at snake dot iap dot physik dot tu-darmstadt dot de
  2004-03-19 13:50 ` [Bug libstdc++/14647] " bangerth at dealii dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: schmid at snake dot iap dot physik dot tu-darmstadt dot de @ 2004-03-19  8:41 UTC (permalink / raw)
  To: gcc-bugs

Since today the bit_vector facility does no longer work. 
This small patch fixes the problem: 
 
*** bvector.h~  2004-03-18 22:41:13.000000000 -0800 
--- bvector.h   2004-03-19 00:57:30.000000000 -0800 
*************** 
*** 59,65 **** 
  #include "backward_warning.h" 
  #include <vector> 
 
! typedef std::vector<bool, allocator<bool> > bit_vector; 
 
  #endif /* _BACKWARD_BVECTOR_H */ 
 
--- 59,65 ---- 
  #include "backward_warning.h" 
  #include <vector> 
 
! typedef std::vector<bool, std::allocator<bool> > bit_vector; 
 
  #endif /* _BACKWARD_BVECTOR_H */ 
 
 
source code tb.C 
#include <vector> 
#include <bvector.h> 
 
int main() 
{ 
  std::bit_vector b(3); 
} 
 
g++ -v tb.C 
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs 
Configured with: ../gcc/configure --enable-threads=posix --enable-languages=c,c
++,f77,objc --enable-__cxa_atexit --enable-libstdcxx-debug 
Thread model: posix 
gcc version 3.4.0 20040319 (prerelease) 
 /usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -D_GNU_SOURCE 
tb.C -quiet -dumpbase tb.C -mtune=pentiumpro -auxbase tb -version -o /tmp/
ccvJKZ1q.s 
ignoring nonexistent directory "NONE/include" 
ignoring nonexistent directory "/usr/local/lib/gcc/
i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include" 
#include "..." search starts here: 
#include <...> search starts here: 
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0 
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
i686-pc-linux-gnu 
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward 
 /usr/local/include 
 /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include 
 /usr/include 
End of search list. 
GNU C++ version 3.4.0 20040319 (prerelease) (i686-pc-linux-gnu) 
	compiled by GNU C version 3.4.0 20040319 (prerelease). 
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274 
In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../
include/c++/3.4.0/backward/bvector.h:59, 
                 from tb.C:2: 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward/backward_warning.h:32:2: warning: #warning This file includes at least 
one deprecated or antiquated header. Please consider using one of the 32 
headers found in section 17.4.1.2 of the C++ standard. Examples include 
substituting the <X> header for the <X.h> header for C++ includes, or 
<iostream> instead of the deprecated header <iostream.h>. To disable this 
warning use -Wno-deprecated. 
In file included from tb.C:2: 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward/bvector.h:62: error: `allocator' was not declared in this scope 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward/bvector.h:62: error: missing `>' to terminate the template argument 
list 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward/bvector.h:62: error: template argument 2 is invalid 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward/bvector.h:62: error: expected unqualified-id before '>' token 
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward/bvector.h:62: error: expected `,' or `;' before '>' token 
tb.C: In function `int main()': 
tb.C:6: error: `bit_vector' is not a member of `std' 
tb.C:6: error: expected `;' before "b"

-- 
           Summary: bit_vectors are broken (regression)
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schmid at snake dot iap dot physik dot tu-darmstadt dot
                    de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug libstdc++/14647] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
@ 2004-03-19 13:50 ` bangerth at dealii dot org
  2004-03-19 14:06 ` gdr at integrable-solutions dot net
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2004-03-19 13:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-03-19 13:50 -------
I can't verify this right now, but the patch seems reasonable enough. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
           Keywords|                            |patch
   Target Milestone|---                         |3.4.0


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


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

* [Bug libstdc++/14647] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
  2004-03-19 13:50 ` [Bug libstdc++/14647] " bangerth at dealii dot org
@ 2004-03-19 14:06 ` gdr at integrable-solutions dot net
  2004-03-19 14:08 ` bangerth at dealii dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-03-19 14:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-03-19 14:06 -------
Subject: Re:  bit_vectors are broken (regression)

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| I can't verify this right now, but the patch seems reasonable enough. 

Please apply it if you can (I can't).

-- Gaby


-- 


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


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

* [Bug libstdc++/14647] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
  2004-03-19 13:50 ` [Bug libstdc++/14647] " bangerth at dealii dot org
  2004-03-19 14:06 ` gdr at integrable-solutions dot net
@ 2004-03-19 14:08 ` bangerth at dealii dot org
  2004-03-19 14:27 ` [Bug libstdc++/14647] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2004-03-19 14:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-03-19 14:08 -------
I can't either. Someone else? Andrew? 
W. 
 

-- 


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


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

* [Bug libstdc++/14647] [3.4/3.5 Regression] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (2 preceding siblings ...)
  2004-03-19 14:08 ` bangerth at dealii dot org
@ 2004-03-19 14:27 ` pinskia at gcc dot gnu dot org
  2004-03-19 14:54 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 14:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-19 14:27 -------
Confirmed, Mark is this okay for 3.4.0? I will apply it for the mainline soon.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-19 14:27:23
               date|                            |
            Summary|bit_vectors are broken      |[3.4/3.5 Regression]
                   |(regression)                |bit_vectors are broken
                   |                            |(regression)
   Target Milestone|3.4.0                       |3.4.1


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


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

* [Bug libstdc++/14647] [3.4/3.5 Regression] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (3 preceding siblings ...)
  2004-03-19 14:27 ` [Bug libstdc++/14647] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-03-19 14:54 ` cvs-commit at gcc dot gnu dot org
  2004-03-19 14:57 ` [Bug libstdc++/14647] [3.4 " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-19 14:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-19 14:54 -------
Subject: Bug 14647

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-03-19 14:54:40

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/backward: bvector.h 

Log message:
	2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
	
	PR libstdc++/14647
	* include/backward/bvector.h (bit_vector): Allocator is in std
	namespace.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2407&r2=1.2408
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/backward/bvector.h.diff?cvsroot=gcc&r1=1.11&r2=1.12



-- 


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


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

* [Bug libstdc++/14647] [3.4 Regression] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (4 preceding siblings ...)
  2004-03-19 14:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-19 14:57 ` pinskia at gcc dot gnu dot org
  2004-03-19 17:07 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 14:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-19 14:57 -------
Fixed in 3.5.0, waiting for approval for 3.4.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.0
      Known to work|                            |3.3.3 3.5.0
            Summary|[3.4/3.5 Regression]        |[3.4 Regression] bit_vectors
                   |bit_vectors are broken      |are broken (regression)
                   |(regression)                |


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


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

* [Bug libstdc++/14647] [3.4 Regression] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (5 preceding siblings ...)
  2004-03-19 14:57 ` [Bug libstdc++/14647] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-03-19 17:07 ` mmitchel at gcc dot gnu dot org
  2004-03-20 18:54 ` cvs-commit at gcc dot gnu dot org
  2004-03-20 18:56 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-19 17:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-03-19 17:07 -------
OK for 3.4.0.

-- 


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


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

* [Bug libstdc++/14647] [3.4 Regression] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (6 preceding siblings ...)
  2004-03-19 17:07 ` mmitchel at gcc dot gnu dot org
@ 2004-03-20 18:54 ` cvs-commit at gcc dot gnu dot org
  2004-03-20 18:56 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-20 18:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-03-20 18:54 -------
Subject: Bug 14647

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	pinskia@gcc.gnu.org	2004-03-20 18:54:12

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/include/backward: bvector.h 

Log message:
	2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
	
	PR libstdc++/14647
	* include/backward/bvector.h (bit_vector): Allocator is in std
	namespace.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.66&r2=1.2224.2.67
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/backward/bvector.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.10.14.2&r2=1.10.14.3



-- 


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


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

* [Bug libstdc++/14647] [3.4 Regression] bit_vectors are broken (regression)
  2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
                   ` (7 preceding siblings ...)
  2004-03-20 18:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-20 18:56 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-20 18:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-20 18:56 -------
Fixed for 3.4.0, thanks for the patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.4.1                       |3.4.0


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


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

end of thread, other threads:[~2004-03-20 18:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19  8:41 [Bug libstdc++/14647] New: bit_vectors are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-19 13:50 ` [Bug libstdc++/14647] " bangerth at dealii dot org
2004-03-19 14:06 ` gdr at integrable-solutions dot net
2004-03-19 14:08 ` bangerth at dealii dot org
2004-03-19 14:27 ` [Bug libstdc++/14647] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-03-19 14:54 ` cvs-commit at gcc dot gnu dot org
2004-03-19 14:57 ` [Bug libstdc++/14647] [3.4 " pinskia at gcc dot gnu dot org
2004-03-19 17:07 ` mmitchel at gcc dot gnu dot org
2004-03-20 18:54 ` cvs-commit at gcc dot gnu dot org
2004-03-20 18:56 ` pinskia at gcc dot gnu dot org

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).