public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7412: References to references (DR 106)
@ 2002-10-08 14:53 gdr
  0 siblings, 0 replies; 2+ messages in thread
From: gdr @ 2002-10-08 14:53 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, wolfgang.bangerth

Synopsis: References to references (DR 106)

State-Changed-From-To: open->suspended
State-Changed-By: gdr
State-Changed-When: Tue Oct  8 14:53:49 2002
State-Changed-Why:
    DR submitted.

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


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

* c++/7412: References to references (DR 106)
@ 2002-07-26  1:26 wolfgang.bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: wolfgang.bangerth @ 2002-07-26  1:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7412
>Category:       c++
>Synopsis:       References to references (DR 106)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 26 01:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
every gcc version up to 2002/07/17 at least
>Description:
The C++ standard in its wording prohibits
reference-to-reference types, but this is subject to DR 106 
(unfortunately not yet in "ready" state, so someone may want 
to suspend this bug report for the time being). Since it is
so simple to create situations where this hurts badly (see
attached example), I thought I'd file a report for this.

Regards
  Wolfgang


Here's the test case:
-----------------------------------------
#include <functional>
void foo (const int &i, const int &j);
int main () {
  std::bind2nd (std::ptr_fun (&foo), 1);
};
-----------------------------------------
The error messages are lengthy, but the essence is that you 
cannot bind reference arguments to functions, even if they
are constant, although I think that would be a perfectly
reasonable idea if the object you want to bind is largish,
or cannot be copied.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-10-08 21:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-08 14:53 c++/7412: References to references (DR 106) gdr
  -- strict thread matches above, loose matches on Subject: below --
2002-07-26  1:26 wolfgang.bangerth

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