public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8982: "using foo::operator+" doesn't parse
@ 2003-01-01 12:26 Nathanael Nerode
  0 siblings, 0 replies; 5+ messages in thread
From: Nathanael Nerode @ 2003-01-01 12:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/8982; it has been noted by GNATS.

From: Nathanael Nerode <neroden@twcny.rr.com>
To: dean@foster.net, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/8982: "using foo::operator+" doesn't parse
Date: Wed, 1 Jan 2003 07:21:25 -0500

 This appears to work with mainline now that the new parser has been committed.
 
 Does this nead a testcase (and if so where should I put it)?  Once that 
 question is resolved I believe we can close this bug.


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

* Re: c++/8982: "using foo::operator+" doesn't parse
@ 2003-01-01 12:37 neroden
  0 siblings, 0 replies; 5+ messages in thread
From: neroden @ 2003-01-01 12:37 UTC (permalink / raw)
  To: dean, gcc-bugs, gcc-prs, nobody

Synopsis: "using foo::operator+" doesn't parse

State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan  1 04:37:49 2003
State-Changed-Why:
    Added testcase.

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


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

* Re: c++/8982: "using foo::operator+" doesn't parse
@ 2003-01-01 12:36 Neil Booth
  0 siblings, 0 replies; 5+ messages in thread
From: Neil Booth @ 2003-01-01 12:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/8982; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.co.uk>
To: Nathanael Nerode <neroden@twcny.rr.com>
Cc: dean@foster.net, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
	nobody@gcc.gnu.org
Subject: Re: c++/8982: "using foo::operator+" doesn't parse
Date: Wed, 1 Jan 2003 12:27:05 +0000

 Nathanael Nerode wrote:-
 
 > This appears to work with mainline now that the new parser has been committed.
 > 
 > Does this nead a testcase (and if so where should I put it)?  Once that 
 > question is resolved I believe we can close this bug.
 
 I think we should put all existing PRs resolved by the new parser in the
 testsuite.
 
 g++.dg/parse
 
 is a possible location.
 
 Neil.


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

* Re: c++/8982: "using foo::operator+" doesn't parse
@ 2002-12-18  7:17 reichelt
  0 siblings, 0 replies; 5+ messages in thread
From: reichelt @ 2002-12-18  7:17 UTC (permalink / raw)
  To: dean, gcc-bugs, gcc-prs, nobody

Synopsis: "using foo::operator+" doesn't parse

State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Dec 18 07:17:08 2002
State-Changed-Why:
    Confirmed.
    
    Gaby's comment on this (which accidentally ended up as PR 8983):
    > This is a known bug -- there already duplicate reports
    > for this and proposed patch.  And, we'll have the new parser (soon).

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


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

* c++/8982: "using foo::operator+" doesn't parse
@ 2002-12-17  8:46 dean
  0 siblings, 0 replies; 5+ messages in thread
From: dean @ 2002-12-17  8:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8982
>Category:       c++
>Synopsis:       "using foo::operator+" doesn't parse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 17 08:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     dean@foster.net
>Release:        gcc 3.2
>Organization:
>Environment:
linux
>Description:
if you want to inject an operator from a namespace into a file, you need to include the entire namespace.  I don't think this is correct.  See below for an example.  The line with is incorrectly handled is marked:


namespace foo{
  template<class X>
  int bar(X x);
  template<class X>
  int operator- (X x);
}

int main()
{
  using foo::bar;    // works correctly
  using foo::operator-;  // ** complains as syntax error
  using namespace foo;  // will inject operator-
}


>How-To-Repeat:

namespace foo{
 
  template<class X>
  int operator- (X x);
}

int main()
{
 
  using foo::operator-;  // ** complains as syntax error
 
}

>Fix:

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


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

end of thread, other threads:[~2003-01-01 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-01 12:26 c++/8982: "using foo::operator+" doesn't parse Nathanael Nerode
  -- strict thread matches above, loose matches on Subject: below --
2003-01-01 12:37 neroden
2003-01-01 12:36 Neil Booth
2002-12-18  7:17 reichelt
2002-12-17  8:46 dean

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