public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
Date: Tue, 10 Aug 2021 22:58:14 +0000	[thread overview]
Message-ID: <bug-58624-4-REMYFAxpBP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58624-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #8)
> (In reply to Markus Trippelsdorf from comment #7)
> > static __typeof 0 a __attribute__ ((__weakref__ ("")));
> > template <typename> class A
> > {
> >   static __thread int b;
> > };
> 
> The problem with this testcase is that set_decl_tls_model adds A<T>::b, an
> uninstantiated template, to the symbol table.  This ICE was introduced by
> honza's r211689.
> 
> I'll deal with the other testcase.

which seems like was fixed with r6-1888:
@@ -2523,8 +2523,12 @@ duplicate_decls (tree newdecl, tree olddecl, bool
newdecl_is_friend)
        }

       if (VAR_P (newdecl)
-         && DECL_THREAD_LOCAL_P (newdecl))
-       set_decl_tls_model (olddecl, DECL_TLS_MODEL (newdecl));
+         && CP_DECL_THREAD_LOCAL_P (newdecl))
+       {
+         CP_DECL_THREAD_LOCAL_P (olddecl) = true;
+         if (!processing_template_decl)
+           set_decl_tls_model (olddecl, DECL_TLS_MODEL (newdecl));
+       }
     }

      parent reply	other threads:[~2021-08-10 22:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
2013-10-04 20:46 ` [Bug c++/58624] " dimitry.ivanov at gmail dot com
2013-10-05 21:11 ` paolo.carlini at oracle dot com
2013-10-10 11:49 ` [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash rguenth at gcc dot gnu.org
2014-01-10 14:43 ` mpolacek at gcc dot gnu.org
2014-08-26 12:19 ` trippels at gcc dot gnu.org
2014-08-26 12:28 ` trippels at gcc dot gnu.org
2014-08-26 12:39 ` trippels at gcc dot gnu.org
2014-08-26 18:02 ` jason at gcc dot gnu.org
2014-08-26 20:05 ` jason at gcc dot gnu.org
2014-08-26 20:22 ` jason at gcc dot gnu.org
2014-10-15 16:46 ` jason at gcc dot gnu.org
2014-12-14  3:57 ` jason at gcc dot gnu.org
2014-12-15 10:36 ` jakub at gcc dot gnu.org
2021-08-10 22:58 ` pinskia at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58624-4-REMYFAxpBP@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).