public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106178] New: [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca
@ 2022-07-04 9:04 marxin at gcc dot gnu.org
2022-07-04 9:04 ` [Bug c++/106178] " marxin at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-04 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106178
Bug ID: 106178
Summary: [13 Regression] Rejected code with "is private within
this context" since r13-1390-g07ac550393d00fca
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jason at gcc dot gnu.org
Target Milestone: ---
Seen in blender package, where the following test-case is rejected now:
$ cat hull.ii
class btConvexHullInternal {
template <typename> struct PoolArray {};
template <typename T> struct Pool {
Pool() {
PoolArray<T> *p;
p->~PoolArray<T>();
}
};
Pool<int> edgePool;
};
void compute() { btConvexHullInternal hull; }
$ g++ hull.ii -c
hull.ii: In instantiation of ‘btConvexHullInternal::Pool<T>::Pool() [with T =
int]’:
hull.ii:1:7: required from here
hull.ii:6:22: error: ‘template<class> struct btConvexHullInternal::PoolArray’
is private within this context
6 | p->~PoolArray<T>();
| ~~~~~~~~~~~~~~~^
hull.ii:2:30: note: declared private here
2 | template <typename> struct PoolArray {};
| ^~~~~~~~~
Started with r13-1390-g07ac550393d00fca.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106178] [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca
2022-07-04 9:04 [Bug c++/106178] New: [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca marxin at gcc dot gnu.org
@ 2022-07-04 9:04 ` marxin at gcc dot gnu.org
2022-07-04 9:13 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-04 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106178
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2022-07-04
Target Milestone|--- |13.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106178] [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca
2022-07-04 9:04 [Bug c++/106178] New: [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca marxin at gcc dot gnu.org
2022-07-04 9:04 ` [Bug c++/106178] " marxin at gcc dot gnu.org
@ 2022-07-04 9:13 ` rguenth at gcc dot gnu.org
2022-07-04 10:07 ` jakub at gcc dot gnu.org
2022-07-06 4:43 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-04 9:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106178
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106178] [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca
2022-07-04 9:04 [Bug c++/106178] New: [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca marxin at gcc dot gnu.org
2022-07-04 9:04 ` [Bug c++/106178] " marxin at gcc dot gnu.org
2022-07-04 9:13 ` rguenth at gcc dot gnu.org
@ 2022-07-04 10:07 ` jakub at gcc dot gnu.org
2022-07-06 4:43 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-07-04 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106178
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
p should be initialized to something before you destruct what it points to...
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/106178] [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca
2022-07-04 9:04 [Bug c++/106178] New: [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2022-07-04 10:07 ` jakub at gcc dot gnu.org
@ 2022-07-06 4:43 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2022-07-06 4:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106178
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Dup, fixed. Note that there's no reason to use a template-id when naming a
destructor, just the name is enough.
*** This bug has been marked as a duplicate of bug 106179 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-06 4:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04 9:04 [Bug c++/106178] New: [13 Regression] Rejected code with "is private within this context" since r13-1390-g07ac550393d00fca marxin at gcc dot gnu.org
2022-07-04 9:04 ` [Bug c++/106178] " marxin at gcc dot gnu.org
2022-07-04 9:13 ` rguenth at gcc dot gnu.org
2022-07-04 10:07 ` jakub at gcc dot gnu.org
2022-07-06 4:43 ` 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).