[PR c++/84497] ref to undefined tls init
authorPádraig Brady <p@draigbrady.com>
Mon, 5 Mar 2018 13:48:43 +0000 (13:48 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 5 Mar 2018 13:48:43 +0000 (13:48 +0000)
commit35a313aaf210f8b4c901de178b46820383dbfd3b
tree61627b35295f2fcb1a4802ac70f1b654c76713f5
parent36a9f50ca9813b31879486a6eb536745dd43b9f5
[PR c++/84497] ref to undefined tls init

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00209.html
PR c++/84497
* decl2.c (get_tls_init_fn): Check TYPE_HAS_TRIVIAL_DFLT too.

PR c++/84497
* g++.dg/cpp0x/pr84497.C: New.

Co-Authored-By: Jason Merrill <jason@redhat.com>
Co-Authored-By: Nathan Sidwell <nathan@acm.org>
From-SVN: r258244
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr84497.C [new file with mode: 0644]