OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR c++/43076
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
pt.c
diff --git
a/gcc/cp/pt.c
b/gcc/cp/pt.c
index
a58dba2
..
a8e1b78
100644
(file)
--- a/
gcc/cp/pt.c
+++ b/
gcc/cp/pt.c
@@
-4548,6
+4548,9
@@
push_template_decl_real (tree decl, bool is_friend)
if (current == decl)
current = ctx;
+ else if (current == NULL_TREE)
+ /* Can happen in erroneous input. */
+ break;
else
current = (TYPE_P (current)
? TYPE_CONTEXT (current)