public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/35541]  New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
@ 2008-03-11 16:24 dominik dot strasser at onespin-solutions dot com
  2008-03-11 16:25 ` [Bug libstdc++/35541] " dominik dot strasser at onespin-solutions dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dominik dot strasser at onespin-solutions dot com @ 2008-03-11 16:24 UTC (permalink / raw)
  To: gcc-bugs

The attached legal C++ source can't be compiled with -D_GLIBCXX_DEBUG


-- 
           Summary: Legal C++ program can't be compiled with -
                    D_GLIBCXX_DEBUG
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominik dot strasser at onespin-solutions dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug libstdc++/35541] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
@ 2008-03-11 16:25 ` dominik dot strasser at onespin-solutions dot com
  2008-03-11 17:09 ` chris at bubblescope dot net
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dominik dot strasser at onespin-solutions dot com @ 2008-03-11 16:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dominik dot strasser at onespin-solutions dot com  2008-03-11 16:25 -------
Created an attachment (id=15299)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15299&action=view)
Source file


-- 


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


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

* [Bug libstdc++/35541] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
  2008-03-11 16:25 ` [Bug libstdc++/35541] " dominik dot strasser at onespin-solutions dot com
@ 2008-03-11 17:09 ` chris at bubblescope dot net
  2008-03-11 17:13 ` chris at bubblescope dot net
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: chris at bubblescope dot net @ 2008-03-11 17:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from chris at bubblescope dot net  2008-03-11 17:08 -------
This used to work (works on Apple's gcc 4.0.1).

The bug is an inconsistency between __check_sorted_set on lines 317 and 334 and
the __check_sorted_set_aux on the lines before

The 4 __check_sorted_set_aux methods expect to be pass all the parameters of
__check_sorted_set, including the _InputIterator2, even though they never use
it. However, it isn't passed by __check_sorted_set, so there is the incorrect
number of parameters.

As far as I can see, this code can have never worked..


-- 


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


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

* [Bug libstdc++/35541] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
  2008-03-11 16:25 ` [Bug libstdc++/35541] " dominik dot strasser at onespin-solutions dot com
  2008-03-11 17:09 ` chris at bubblescope dot net
@ 2008-03-11 17:13 ` chris at bubblescope dot net
  2008-03-11 21:52 ` pcarlini at suse dot de
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: chris at bubblescope dot net @ 2008-03-11 17:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from chris at bubblescope dot net  2008-03-11 17:12 -------
While I'm sure he will be along soon anyway, I shall add Paolo to the CC list
of this bug.

It looks to me like a simple typo was made while fixing 34730.


-- 

chris at bubblescope dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pcarlini at suse dot de,
                   |                            |chris at bubblescope dot net


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


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

* [Bug libstdc++/35541] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (2 preceding siblings ...)
  2008-03-11 17:13 ` chris at bubblescope dot net
@ 2008-03-11 21:52 ` pcarlini at suse dot de
  2008-03-13 17:36 ` paolo at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pcarlini at suse dot de @ 2008-03-11 21:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pcarlini at suse dot de  2008-03-11 21:52 -------
Yes, it's a trivial issue, sorry about that. I think the third parameter of the
*_sorted_set_aux functions can be simply removed. Anyway, I'll fix it ASAP.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|pcarlini at suse dot de     |
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-11 21:52:12
               date|                            |


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


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

* [Bug libstdc++/35541] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (3 preceding siblings ...)
  2008-03-11 21:52 ` pcarlini at suse dot de
@ 2008-03-13 17:36 ` paolo at gcc dot gnu dot org
  2008-03-13 17:37 ` paolo at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-03-13 17:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo at gcc dot gnu dot org  2008-03-13 17:36 -------
Subject: Bug 35541

Author: paolo
Date: Thu Mar 13 17:35:40 2008
New Revision: 133173

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133173
Log:
2008-03-13  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/35541
        * include/debug/functions.h (__check_sorted_set_aux): Fix signature.
        * testsuite/25_algorithms/set_difference/35541.cc: New.


Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/set_difference/35541.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/debug/functions.h


-- 


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


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

* [Bug libstdc++/35541] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (4 preceding siblings ...)
  2008-03-13 17:36 ` paolo at gcc dot gnu dot org
@ 2008-03-13 17:37 ` paolo at gcc dot gnu dot org
  2008-03-13 17:38 ` [Bug libstdc++/35541] [4.3 Regression] " pcarlini at suse dot de
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2008-03-13 17:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo at gcc dot gnu dot org  2008-03-13 17:36 -------
Subject: Bug 35541

Author: paolo
Date: Thu Mar 13 17:36:02 2008
New Revision: 133174

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133174
Log:
2008-03-13  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/35541
        * include/debug/functions.h (__check_sorted_set_aux): Fix signature.
        * testsuite/25_algorithms/set_difference/35541.cc: New.


Added:
   
branches/gcc-4_3-branch/libstdc++-v3/testsuite/25_algorithms/set_difference/35541.cc
Modified:
    branches/gcc-4_3-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_3-branch/libstdc++-v3/include/debug/functions.h


-- 


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


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

* [Bug libstdc++/35541] [4.3 Regression] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (5 preceding siblings ...)
  2008-03-13 17:37 ` paolo at gcc dot gnu dot org
@ 2008-03-13 17:38 ` pcarlini at suse dot de
  2008-03-21 21:16 ` pcarlini at suse dot de
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pcarlini at suse dot de @ 2008-03-13 17:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pcarlini at suse dot de  2008-03-13 17:38 -------
Fixed for 4.3.1.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|Legal C++ program can't be  |[4.3 Regression] Legal C++
                   |compiled with -             |program can't be compiled
                   |D_GLIBCXX_DEBUG             |with -D_GLIBCXX_DEBUG
   Target Milestone|---                         |4.3.1


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


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

* [Bug libstdc++/35541] [4.3 Regression] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (6 preceding siblings ...)
  2008-03-13 17:38 ` [Bug libstdc++/35541] [4.3 Regression] " pcarlini at suse dot de
@ 2008-03-21 21:16 ` pcarlini at suse dot de
  2008-05-29  8:55 ` paolo dot carlini at oracle dot com
  2009-05-20 14:59 ` dominik dot strasser at onespin-solutions dot com
  9 siblings, 0 replies; 11+ messages in thread
From: pcarlini at suse dot de @ 2008-03-21 21:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pcarlini at suse dot de  2008-03-21 21:15 -------
*** Bug 35656 has been marked as a duplicate of this bug. ***


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Andrew_Pollard at amat dot
                   |                            |com


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


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

* [Bug libstdc++/35541] [4.3 Regression] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (7 preceding siblings ...)
  2008-03-21 21:16 ` pcarlini at suse dot de
@ 2008-05-29  8:55 ` paolo dot carlini at oracle dot com
  2009-05-20 14:59 ` dominik dot strasser at onespin-solutions dot com
  9 siblings, 0 replies; 11+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-05-29  8:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from paolo dot carlini at oracle dot com  2008-05-29 08:54 -------
*** Bug 36363 has been marked as a duplicate of this bug. ***


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joerg dot richter at pdv-fs
                   |                            |dot de


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


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

* [Bug libstdc++/35541] [4.3 Regression] Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG
  2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
                   ` (8 preceding siblings ...)
  2008-05-29  8:55 ` paolo dot carlini at oracle dot com
@ 2009-05-20 14:59 ` dominik dot strasser at onespin-solutions dot com
  9 siblings, 0 replies; 11+ messages in thread
From: dominik dot strasser at onespin-solutions dot com @ 2009-05-20 14:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dominik dot strasser at onespin-solutions dot com  2009-05-20 14:59 -------
Works fine


-- 

dominik dot strasser at onespin-solutions dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED


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


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

end of thread, other threads:[~2009-05-20 14:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-11 16:24 [Bug libstdc++/35541] New: Legal C++ program can't be compiled with -D_GLIBCXX_DEBUG dominik dot strasser at onespin-solutions dot com
2008-03-11 16:25 ` [Bug libstdc++/35541] " dominik dot strasser at onespin-solutions dot com
2008-03-11 17:09 ` chris at bubblescope dot net
2008-03-11 17:13 ` chris at bubblescope dot net
2008-03-11 21:52 ` pcarlini at suse dot de
2008-03-13 17:36 ` paolo at gcc dot gnu dot org
2008-03-13 17:37 ` paolo at gcc dot gnu dot org
2008-03-13 17:38 ` [Bug libstdc++/35541] [4.3 Regression] " pcarlini at suse dot de
2008-03-21 21:16 ` pcarlini at suse dot de
2008-05-29  8:55 ` paolo dot carlini at oracle dot com
2009-05-20 14:59 ` dominik dot strasser at onespin-solutions dot com

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