forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR c++/79606 - ICE with this->base_member in NSDMI
* class.c (build_base_path): Check processing_template_decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245593 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jason
committed
Feb 20, 2017
1 parent
9722fa4
commit 8de8559
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// PR c++/79606 | ||
// { dg-do compile { target c++11 } } | ||
|
||
struct A | ||
{ | ||
int i = 0; | ||
}; | ||
|
||
template<int> struct B : A | ||
{ | ||
int j = this->i; | ||
}; | ||
|
||
B<0> b; |