public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10646: is_const<T> treats references and functions as const
@ 2003-05-06 22:46 notbob
  0 siblings, 0 replies; only message in thread
From: notbob @ 2003-05-06 22:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10646
>Category:       c++
>Synopsis:       is_const<T> treats references and functions as const
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 06 22:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Robert Allan Schwartz
>Release:        gcc version 3.2 20020927 (prerelease)
>Organization:
>Environment:
in bash via cygwin on windows 98 se
>Description:
I apologize in advance if I'm not reporting this "bug"
absolutely correctly. I haven't done this before. I
appreciate your patience. Thank you.

I believe my template should report references and functions as NOT const.

Is this "pilot error" or a compiler bug?
>How-To-Repeat:
g++ is_const.cpp
./a.exe
>Fix:

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

dGVtcGxhdGUgPHR5cGVuYW1lIFQ+DQpjbGFzcyBpc19jb25zdCB7IHB1YmxpYzogc3RhdGljIGNv
bnN0IGJvb2wgdmFsdWUgPSBmYWxzZTsgfTsNCg0KdGVtcGxhdGUgPHR5cGVuYW1lIFQ+DQpjbGFz
cyBpc19jb25zdDxjb25zdCBUPiB7IHB1YmxpYzogc3RhdGljIGNvbnN0IGJvb2wgdmFsdWUgPSB0
cnVlOyB9Ow0KDQojaW5jbHVkZSA8aW9zdHJlYW0+DQoNCmludCBtYWluKCkNCnsNCglzdGQ6OmNv
dXQgPDwgImlzX2NvbnN0PGJvb2wgJj46OnZhbHVlID0gIiA8PCBpc19jb25zdDxib29sICY+Ojp2
YWx1ZSA8PCBzdGQ6OmVuZGw7DQoNCglzdGQ6OmNvdXQgPDwgImlzX2NvbnN0PHZvaWQgKHZvaWQp
Pjo6dmFsdWUgPSAiIDw8IGlzX2NvbnN0PHZvaWQgKHZvaWQpPjo6dmFsdWUgPDwgc3RkOjplbmRs
Ow0KCXN0ZDo6Y291dCA8PCAiaXNfY29uc3Q8aW50ICAodm9pZCk+Ojp2YWx1ZSA9ICIgPDwgaXNf
Y29uc3Q8aW50ICAodm9pZCk+Ojp2YWx1ZSA8PCBzdGQ6OmVuZGw7DQoJc3RkOjpjb3V0IDw8ICJp
c19jb25zdDxpbnQgIChpbnQgKT46OnZhbHVlID0gIiA8PCBpc19jb25zdDxpbnQgIChpbnQgKT46
OnZhbHVlIDw8IHN0ZDo6ZW5kbDsNCg0KCXJldHVybiAwOw0KfQ0K


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-06 22:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-06 22:46 c++/10646: is_const<T> treats references and functions as const notbob

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