re PR c++/56722 (C++11: syntax error in for loop ends in SEGV)
/cp 2013-03-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56722 * decl.c (cp_finish_decl): Check DECL_LANG_SPECIFIC before DECL_TEMPLATE_INSTANTIATION. /testsuite 2013-03-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56722 * g++.dg/cpp0x/range-for23.C: New. From-SVN: r197062
This commit is contained in:
parent
6f6fafc9ef
commit
bbce8a8a36
|
@ -1,3 +1,9 @@
|
|||
2013-03-25 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/56722
|
||||
* decl.c (cp_finish_decl): Check DECL_LANG_SPECIFIC before
|
||||
DECL_TEMPLATE_INSTANTIATION.
|
||||
|
||||
2013-03-22 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/56684
|
||||
|
|
|
@ -6111,7 +6111,8 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
|
|||
tree d_init;
|
||||
if (init == NULL_TREE)
|
||||
{
|
||||
if (DECL_TEMPLATE_INSTANTIATION (decl)
|
||||
if (DECL_LANG_SPECIFIC (decl)
|
||||
&& DECL_TEMPLATE_INSTANTIATION (decl)
|
||||
&& !DECL_TEMPLATE_INSTANTIATED (decl))
|
||||
{
|
||||
/* init is null because we're deferring instantiating the
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2013-03-25 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/56722
|
||||
* g++.dg/cpp0x/range-for23.C: New.
|
||||
|
||||
2013-03-25 Tilo Schwarz <tilo@tilo-schwarz.de>
|
||||
|
||||
PR libfortran/52512
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
// PR c++/56722
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
int main()
|
||||
{
|
||||
for (const auto& i, 21) // { dg-error "has no initializer|expected" }
|
||||
i;
|
||||
}
|
Loading…
Reference in New Issue