mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-28 11:20:58 +08:00
re PR c++/85558 (ICE in make_rtl_for_nonlocal_decl when using static member of template class)
2019-03-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/85558 * g++.dg/other/friend16.C: New. * g++.dg/other/friend17.C: Likewise. From-SVN: r269644
This commit is contained in:
parent
7a26e2739d
commit
31ba0418a2
@ -1,3 +1,9 @@
|
|||||||
|
2019-03-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
PR c++/85558
|
||||||
|
* g++.dg/other/friend16.C: New.
|
||||||
|
* g++.dg/other/friend17.C: Likewise.
|
||||||
|
|
||||||
2019-03-13 Jakub Jelinek <jakub@redhat.com>
|
2019-03-13 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR middle-end/88588
|
PR middle-end/88588
|
||||||
|
12
gcc/testsuite/g++.dg/other/friend16.C
Normal file
12
gcc/testsuite/g++.dg/other/friend16.C
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// PR c++/85558
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
struct triggerBug {
|
||||||
|
friend void doInitUser(bool = triggerBug::doInit); // { dg-error "definition" }
|
||||||
|
static bool doInit;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
bool triggerBug<T>::doInit = true;
|
||||||
|
|
||||||
|
triggerBug<int> bug;
|
12
gcc/testsuite/g++.dg/other/friend17.C
Normal file
12
gcc/testsuite/g++.dg/other/friend17.C
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// PR c++/85558
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
struct triggerBug {
|
||||||
|
friend void doInitUser(bool = triggerBug::doInit) {}
|
||||||
|
static bool doInit;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
bool triggerBug<T>::doInit = true;
|
||||||
|
|
||||||
|
triggerBug<int> bug;
|
Loading…
x
Reference in New Issue
Block a user