public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57376] New: Bogus error due to failure of unqualified namespace lookup
@ 2013-05-22 17:09 ppluzhnikov at google dot com
  2015-03-27 18:47 ` [Bug c++/57376] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: ppluzhnikov at google dot com @ 2013-05-22 17:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57376

            Bug ID: 57376
           Summary: Bogus error due to failure of unqualified namespace
                    lookup
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppluzhnikov at google dot com

Reproduced with current trunk @r199204.

g++ -c t.cc
t.cc:17:25: error: ‘F2’ is neither function nor member function; cannot be
declared friend
     friend Foo *Foo::F2(Woo *);     // error
                         ^
t.cc:17:22: error: expected ‘;’ at end of member declaration
     friend Foo *Foo::F2(Woo *);     // error
                      ^
t.cc:17:29: error: expected ‘)’ before ‘*’ token
     friend Foo *Foo::F2(Woo *);     // error
                             ^

Source appears to be completely kosher and is accepted by Clang and EDG.
Test case:

/// --- cut ---
namespace B
{
  class Woo;
}

struct Foo
{
  Foo* F1(B::Woo *);
  Foo* F2(B::Woo *);
};

namespace B
{
  class Boo:Foo
  {
    friend Foo *Foo::F1(B::Woo *);  // ok
    friend Foo *Foo::F2(Woo *);     // error
  };
}
/// --- cut ---
>From gcc-bugs-return-422914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 22 17:09:48 2013
Return-Path: <gcc-bugs-return-422914-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5568 invoked by alias); 22 May 2013 17:09:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5526 invoked by uid 48); 22 May 2013 17:09:45 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/57377] New: compiler cannot be built with RTL checking
Date: Wed, 22 May 2013 17:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc cf_gcctarget
Message-ID: <bug-57377-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-05/txt/msg01587.txt.bz2
Content-length: 1782

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW377

            Bug ID: 57377
           Summary: compiler cannot be built with RTL checking
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ebotcazou at gcc dot gnu.org
                CC: krebbel at gcc dot gnu.org
            Target: s390-*-*

There is apparently something wrong with the mnemonic attribute:

build/genconditions /home/eric/svn/gcc/gcc/config/s390/s390.md > tmp-condmd.c
build/genpreds -h /home/eric/svn/gcc/gcc/config/s390/s390.md > tmp-preds.h
build/genpreds -c /home/eric/svn/gcc/gcc/config/s390/s390.md > tmp-constrs.h
build/genpreds: Internal error: RTL check: expected elt 0 type 's' or 'S', have
'e' (rtx set) in gen_mnemonic_attr, at gensupport.c:2436
make[2]: *** [s-preds] Error 1
make[2]: *** Waiting for unfinished jobs....
build/genpreds: Internal error: RTL check: expected elt 0 type 's' or 'S', have
'e' (rtx set) in gen_mnemonic_attr, at gensupport.c:2436
make[2]: *** [s-preds-h] Error 1
build/genpreds: Internal error: RTL check: expected elt 0 type 's' or 'S', have
'e' (rtx set) in gen_mnemonic_attr, at gensupport.c:2436
make[2]: *** [s-constrs-h] Error 1
genconditions: Internal error: RTL check: expected elt 0 type 's' or 'S', have
'e' (rtx set) in gen_mnemonic_attr, at gensupport.c:2436
make[2]: *** [s-conditions] Error 1
rm fsf-funding.pod gcov.pod gfdl.pod cpp.pod gcc.pod gfortran.pod
make[2]: Leaving directory `/home/eric/build/gcc/s390x-ibm-linux/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/eric/build/gcc/s390x-ibm-linux'
make: *** [all] Error 2


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

* [Bug c++/57376] Bogus error due to failure of unqualified namespace lookup
  2013-05-22 17:09 [Bug c++/57376] New: Bogus error due to failure of unqualified namespace lookup ppluzhnikov at google dot com
@ 2015-03-27 18:47 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-27 18:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57376

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-27
             Blocks|                            |65608
     Ever confirmed|0                           |1


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

end of thread, other threads:[~2015-03-27 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-22 17:09 [Bug c++/57376] New: Bogus error due to failure of unqualified namespace lookup ppluzhnikov at google dot com
2015-03-27 18:47 ` [Bug c++/57376] " paolo.carlini at oracle dot com

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