This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/10649: is_pointer<T> reports pointer to member function is not a pointer


>Number:         10649
>Category:       c++
>Synopsis:       is_pointer<T> reports pointer to member function is not a pointer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 06 22:56:02 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 void (i_am_a_class::*)(void) is a pointer, but instead it returns false.

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

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

dGVtcGxhdGUgPHR5cGVuYW1lIFQ+DQpjbGFzcyBpc19wb2ludGVyIHsgcHVibGljOiBzdGF0aWMg
Y29uc3QgYm9vbCB2YWx1ZSA9IGZhbHNlOyB9Ow0KDQp0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4NCmNs
YXNzIGlzX3BvaW50ZXI8VCAqPiB7IHB1YmxpYzogc3RhdGljIGNvbnN0IGJvb2wgdmFsdWUgPSB0
cnVlOyB9Ow0KDQojaW5jbHVkZSA8aW9zdHJlYW0+DQoNCmNsYXNzIGlfYW1fYV9jbGFzcyB7IH07
DQoNCmludCBtYWluKCkNCnsNCglzdGQ6OmNvdXQgPDwgImlzX3BvaW50ZXI8dm9pZCAoaV9hbV9h
X2NsYXNzOjoqKSh2b2lkKT46OnZhbHVlID0gIiA8PCBpc19wb2ludGVyPHZvaWQgKGlfYW1fYV9j
bGFzczo6Kikodm9pZCk+Ojp2YWx1ZSA8PCBzdGQ6OmVuZGw7DQoNCglyZXR1cm4gMDsNCn0NCg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]