public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26974]  New: hidden declarations klobber STL
@ 2006-04-01  8:24 igodard at pacbell dot net
  2006-04-01  8:25 ` [Bug c++/26974] " igodard at pacbell dot net
                   ` (32 more replies)
  0 siblings, 33 replies; 34+ messages in thread
From: igodard at pacbell dot net @ 2006-04-01  8:24 UTC (permalink / raw)
  To: gcc-bugs

The program:
#include <vector>
#include "absParse.hh"


int main( int argc, char *argv[] )
{
  std::vector<int> v;
  v.resize(1);
  return 0;
}

compiles but gets a segv in the resize() call on several different g++
versions. The problem seems to have something to do with declarations of
operator,() in absParse.hh hijacking a loop in the STL where operator,() is
used to do two iterator increments: "for( ; i < last; ++i, ++j ) { ... }"

A full save-temps is attached

Ivan


-- 
           Summary: hidden declarations klobber STL
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


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


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

end of thread, other threads:[~2006-05-01 19:02 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-01  8:24 [Bug c++/26974] New: hidden declarations klobber STL igodard at pacbell dot net
2006-04-01  8:25 ` [Bug c++/26974] " igodard at pacbell dot net
2006-04-01  8:26 ` igodard at pacbell dot net
2006-04-19  2:57 ` bangerth at dealii dot org
2006-04-19  6:36 ` igodard at pacbell dot net
2006-04-19 14:11 ` bangerth at dealii dot org
2006-04-20  2:43 ` igodard at pacbell dot net
2006-04-20  3:46 ` bangerth at dealii dot org
2006-04-20  4:13 ` [Bug libstdc++/26974] " bangerth at dealii dot org
2006-04-20  8:20 ` igodard at pacbell dot net
2006-04-20  9:10 ` pcarlini at suse dot de
2006-04-20  9:25 ` pcarlini at suse dot de
2006-04-20  9:28 ` igodard at pacbell dot net
2006-04-20  9:31 ` igodard at pacbell dot net
2006-04-20  9:37 ` pcarlini at suse dot de
2006-04-20  9:56 ` pcarlini at suse dot de
2006-04-20  9:57 ` igodard at pacbell dot net
2006-04-20  9:58 ` igodard at pacbell dot net
2006-04-20 10:20 ` pcarlini at suse dot de
2006-04-20 11:32 ` pcarlini at suse dot de
2006-04-20 11:56 ` pcarlini at suse dot de
2006-04-20 11:59 ` pcarlini at suse dot de
2006-04-20 14:10 ` bangerth at dealii dot org
2006-04-20 16:24 ` pinskia at gcc dot gnu dot org
2006-04-20 18:16 ` bangerth at dealii dot org
2006-04-20 18:40 ` igodard at pacbell dot net
2006-04-20 19:15 ` igodard at pacbell dot net
2006-04-20 23:10 ` pcarlini at suse dot de
2006-04-21  4:07 ` igodard at pacbell dot net
2006-04-21 10:08 ` pcarlini at suse dot de
2006-04-22  8:47 ` pcarlini at suse dot de
2006-05-01 18:55 ` gdr at integrable-solutions dot net
2006-05-01 18:59 ` gdr at integrable-solutions dot net
2006-05-01 19:02 ` gdr at integrable-solutions dot net

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