public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope
@ 2013-04-13 16:06 ppluzhnikov at google dot com
2013-04-15 10:25 ` [Bug c++/56947] [4.7 Regression] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: ppluzhnikov at google dot com @ 2013-04-13 16:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
Bug #: 56947
Summary: [4.7.3 regression] Bogus 'XX' was not declared in this
scope
Classification: Unclassified
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ppluzhnikov@google.com
This is a recent gcc-4_7-branch regression.
The case builds with trunk (r197936), fails with 4.7 branch (r197941):
struct A
{
A (int);
};
template < typename >
void Fn ()
{
const int kCapacity = 0;
struct Q:A
{
Q ():A (kCapacity) { }
};
Q q;
}
template void Fn < int >();
$ trunk/bin/g++ -c t.cc && echo ok
ok
$ 4.7/bin/g++ -c t.cc
t.cc: In instantiation of ‘Fn()::Q::Q() [with <template-parameter-1-1> = int]’:
t.cc:14:7: required from ‘void Fn() [with <template-parameter-1-1> = int]’
t.cc:16:26: required from here
t.cc:12:26: error: ‘kCapacity’ was not declared in this scope
>From gcc-bugs-return-420222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 13 16:43:14 2013
Return-Path: <gcc-bugs-return-420222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20861 invoked by alias); 13 Apr 2013 16:43:14 -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 20841 invoked by uid 48); 13 Apr 2013 16:43:11 -0000
From: "wbrana at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/54078] Bytemark 46% bigger binary with -flto
Date: Sat, 13 Apr 2013 16:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: wbrana at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-54078-4-OALZ7WyeIl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-54078-4@http.gcc.gnu.org/bugzilla/>
References: <bug-54078-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-04/txt/msg01367.txt.bz2
Content-length: 399
http://gcc.gnu.org/bugzilla/show_bug.cgi?idT078
--- Comment #5 from wbrana <wbrana at gmail dot com> 2013-04-13 16:43:10 UTC ---
branch 4.9
without lto
101462 bytes
with -flto -fwhole-program
157243 bytes - linker bfd
155488 bytes - linker gold
other CFLAGS = -O3 -g0 -march=corei7 -fomit-frame-pointer -funroll-loops
-ffast-math -fno-PIE -fno-exceptions -fno-stack-protector
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
@ 2013-04-15 10:25 ` rguenth at gcc dot gnu.org
2014-05-26 15:44 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-15 10:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-04-15
Known to work| |4.7.2, 4.8.0
Target Milestone|--- |4.7.4
Summary|[4.7.3 regression] Bogus |[4.7 Regression] Bogus 'XX'
|'XX' was not declared in |was not declared in this
|this scope |scope
Ever Confirmed|0 |1
Known to fail| |4.7.3
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-15 10:24:57 UTC ---
Ick. Confirmed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
2013-04-15 10:25 ` [Bug c++/56947] [4.7 Regression] " rguenth at gcc dot gnu.org
@ 2014-05-26 15:44 ` jakub at gcc dot gnu.org
2014-05-27 8:51 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-05-26 15:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Supposedly caused by r196087.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
2013-04-15 10:25 ` [Bug c++/56947] [4.7 Regression] " rguenth at gcc dot gnu.org
2014-05-26 15:44 ` jakub at gcc dot gnu.org
@ 2014-05-27 8:51 ` rguenth at gcc dot gnu.org
2014-05-29 17:55 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-27 8:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |52026
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed that. I suppose rejects-valid is "better" than wrong-code in some
sense but the former only was for C++11 code. If there isn't a safe fix for
this issue I'd consider reverting the patch for PR52026.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
` (2 preceding siblings ...)
2014-05-27 8:51 ` rguenth at gcc dot gnu.org
@ 2014-05-29 17:55 ` jason at gcc dot gnu.org
2014-05-30 18:56 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-29 17:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
` (3 preceding siblings ...)
2014-05-29 17:55 ` jason at gcc dot gnu.org
@ 2014-05-30 18:56 ` jason at gcc dot gnu.org
2014-05-30 18:58 ` jason at gcc dot gnu.org
2014-07-14 20:40 ` jason at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-30 18:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri May 30 18:55:56 2014
New Revision: 211094
URL: http://gcc.gnu.org/viewcvs?rev=211094&root=gcc&view=rev
Log:
PR c++/56947
* pt.c (instantiate_decl): Check that defer_ok is not set for
local class members.
Added:
trunk/gcc/testsuite/g++.dg/template/local8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
` (4 preceding siblings ...)
2014-05-30 18:56 ` jason at gcc dot gnu.org
@ 2014-05-30 18:58 ` jason at gcc dot gnu.org
2014-07-14 20:40 ` jason at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-30 18:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.7.4.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56947] [4.7 Regression] Bogus 'XX' was not declared in this scope
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
` (5 preceding siblings ...)
2014-05-30 18:58 ` jason at gcc dot gnu.org
@ 2014-07-14 20:40 ` jason at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2014-07-14 20:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56947
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jul 14 20:39:35 2014
New Revision: 212524
URL: https://gcc.gnu.org/viewcvs?rev=212524&root=gcc&view=rev
Log:
PR c++/61445
PR c++/56947
* pt.c (instantiate_decl): Don't check defer_ok for local class
members.
Added:
trunk/gcc/testsuite/g++.dg/template/local9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-07-14 20:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-13 16:06 [Bug c++/56947] New: [4.7.3 regression] Bogus 'XX' was not declared in this scope ppluzhnikov at google dot com
2013-04-15 10:25 ` [Bug c++/56947] [4.7 Regression] " rguenth at gcc dot gnu.org
2014-05-26 15:44 ` jakub at gcc dot gnu.org
2014-05-27 8:51 ` rguenth at gcc dot gnu.org
2014-05-29 17:55 ` jason at gcc dot gnu.org
2014-05-30 18:56 ` jason at gcc dot gnu.org
2014-05-30 18:58 ` jason at gcc dot gnu.org
2014-07-14 20:40 ` jason 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).