public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60565] New: Bogus not-in-scope error
@ 2014-03-18 13:22 patrick at parcs dot ath.cx
  2014-03-18 13:24 ` [Bug c++/60565] " patrick at parcs dot ath.cx
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: patrick at parcs dot ath.cx @ 2014-03-18 13:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60565
           Summary: Bogus not-in-scope error
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: patrick at parcs dot ath.cx

The following file fails to compile due to a bogus not-in-scope error for
B::foo ():

namespace A
{
    extern "C" void foo () throw ();
}

namespace B
{
    extern "C" void foo ();
}

int
main ()
{
    foo ();
}



$ g++ -c exc.C
exc.C:8:26: warning: declaration of ‘void B::foo()’ with C language linkage
[enabled by default]
     extern "C" void foo ();
                          ^
exc.C:3:21: warning: conflicts with previous declaration ‘void A::foo()’
[enabled by default]
     extern "C" void foo () throw ();
                     ^
exc.C:8:26: warning: due to different exception specifications [enabled by
default]
     extern "C" void foo ();
                          ^
exc.C: In function ‘int main()’:
exc.C:14:5: error: ‘foo’ is not a member of ‘B’
     B::foo ();
     ^
exc.C:14:5: note: suggested alternative:
exc.C:3:21: note:   ‘A::foo’
     extern "C" void foo () throw ();
                     ^
>From gcc-bugs-return-446706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 18 13:22:45 2014
Return-Path: <gcc-bugs-return-446706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13677 invoked by alias); 18 Mar 2014 13:22:45 -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 13615 invoked by uid 48); 18 Mar 2014 13:22:41 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/60128] [4.8/4.9 Regression] Wrong ouput using en edit descriptor
Date: Tue, 18 Mar 2014 13:22:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: REOPENED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60128-4-f6zalskFgK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60128-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60128-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: 2014-03/txt/msg01575.txt.bz2
Content-length: 339

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`128

--- Comment #21 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> We can xfail the test case if we are certain of the problem.

What I don't see is how to xfail only some tests for real(16). Anyway, Rainer
could open a new PR for the solaris issue and close this one as FIXED?


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

end of thread, other threads:[~2021-07-28 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-18 13:22 [Bug c++/60565] New: Bogus not-in-scope error patrick at parcs dot ath.cx
2014-03-18 13:24 ` [Bug c++/60565] " patrick at parcs dot ath.cx
2014-03-18 13:33 ` redi at gcc dot gnu.org
2014-03-18 14:12 ` patrick at parcs dot ath.cx
2014-03-18 15:47 ` redi at gcc dot gnu.org
2021-07-28 15:54 ` pinskia at gcc dot gnu.org

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