public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7877: Incorrect parameter passing to specializations of member function templates
@ 2002-09-10  2:36 anthwil
  0 siblings, 0 replies; 2+ messages in thread
From: anthwil @ 2002-09-10  2:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: anthony_w


>Number:         7877
>Category:       c++
>Synopsis:       Incorrect parameter passing to specializations of member function templates
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 02:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Anthony Williams
>Release:        g++ 3.1 (mingw32 and sparc-solaris-2.7) and g++ 3.2 (mingw32)
>Organization:
>Environment:
Reading specs from d:/local/mingw/bin/../lib/gcc-lib/mingw32/3.1/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.1

and

Reading specs from d:/local/mingw/bin/../lib/gcc-lib/i686-pc-mingw32/3.2/specs
Configured with: ../gcc-3.2-20020817-1/configure --enable-languages=c,c++ --pref
ix=d:/local/mingw --enable-threads
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)

and 

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.1/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.1
>Description:
When the attached program is run, the two output lines are different, when they should be the same. e.g.:

lhs=0x22ff6c, rhs=0x22ff68
lhs=0x22ff68, rhs=0x22ff70

This translates into serious bugs, as variables are read incorrectly and random memory is accessed and updated.
>How-To-Repeat:
Compile and run the attached program
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="testtemp.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testtemp.cpp"

I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGU8dHlwZW5hbWUgVD4Kc3RydWN0IEEKewogICAg
dGVtcGxhdGU8dHlwZW5hbWUgSW5wdXRJdGVyYXRvcj4KICAgIHN0YXRpYyBpbnQgZihJbnB1dEl0
ZXJhdG9yJiBsaHMsSW5wdXRJdGVyYXRvciYgcmhzKTsKfTsKCnN0cnVjdCBUYWcxOwoKdGVtcGxh
dGU8Pgp0ZW1wbGF0ZTx0eXBlbmFtZSBJbnB1dEl0ZXJhdG9yPgppbnQgQTxUYWcxPjo6ZihJbnB1
dEl0ZXJhdG9yJiBsaHMsSW5wdXRJdGVyYXRvciYgcmhzKQp7CiAgICBzdGQ6OmNvdXQ8PCJsaHM9
Ijw8Jmxoczw8IiwgcmhzPSI8PCZyaHM8PHN0ZDo6ZW5kbDsKICAgIHJldHVybiAwOwp9CgppbnQg
bWFpbigpCnsKICAgIGNoYXIgKmxocywqcmhzOwogICAgc3RkOjpjb3V0PDwibGhzPSI8PCZsaHM8
PCIsIHJocz0iPDwmcmhzPDxzdGQ6OmVuZGw7CgogICAgQTxUYWcxPjo6ZihsaHMscmhzKTsKICAg
IHJldHVybiAwOwp9Cgo=


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

* Re: c++/7877: Incorrect parameter passing to specializations of member function templates
@ 2002-09-13  7:59 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-13  7:59 UTC (permalink / raw)
  To: anthony_w, anthwil, gcc-bugs, gcc-prs, nobody

Synopsis: Incorrect parameter passing to specializations of member function templates

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 07:59:40 2002
State-Changed-Why:
    confirmed - the non-templated version behaves as expected

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7877


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

end of thread, other threads:[~2002-09-13 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10  2:36 c++/7877: Incorrect parameter passing to specializations of member function templates anthwil
2002-09-13  7:59 nathan

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