public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3518: default conversion applied too soon
@ 2001-07-01 13:26 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-07-01 13:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3518
>Category:       c++
>Synopsis:       default conversion applied too soon
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 01 13:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nathan
>Release:        3.0
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
 In the attached file Foo1 should fail as [8.5]/14 applies to the
 return value. But before looking for ctors of any, ocp_convert does a
 default conversion and decays the function to a pointer. It should
 fail, because the applicable ctor attempts to make a const qualified
 function type.
>How-To-Repeat:

>Fix:

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

c3RydWN0IGFueQp7CiAgdGVtcGxhdGUgPHR5cGVuYW1lIFQ+IGFueSAoY29uc3QgVCYpOwp9OwoK
dGVtcGxhdGUgPHR5cGVuYW1lIFQ+IGFueSBGb28gKFQgJnMpCnsKICByZXR1cm4gczsKfQoKdm9p
ZCBmICgpOwoKdm9pZCBaICgpCnsKICBGb28gKGYpOwp9Owo=


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

* Re: c++/3518: default conversion applied too soon
@ 2002-09-13 16:30 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-13 16:30 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, nobody

Synopsis: default conversion applied too soon

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 16:30:13 2002
State-Changed-Why:
    confirmed

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


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-01 13:26 c++/3518: default conversion applied too soon nathan
2002-09-13 16:30 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).