c++/8590: Hello World

bleile@askvisual.de bleile@askvisual.de
Fri Nov 15 03:26:00 GMT 2002


>Number:         8590
>Category:       c++
>Synopsis:       Hello World
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 15 03:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Antonio Bleile
>Release:        gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
>Organization:
>Environment:
RedHat 8.0
>Description:
a call to:

splineIter v = vertices.begin();

new SplineSegment(v,derivates[di+1],derivates[di+2],*(++v));

SplineSegment::SplineSegment( const vector3d &a, const vector3d &b,
                              const vector3d &c, const vector3d &d ){...}

a and d are always identical. looks like the increment is
done AFTER the function call. Old gcc and the intel compiler
worked properly.
>How-To-Repeat:

>Fix:
pass already incremented iterators.....
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list