public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7068] c++: add comment
@ 2022-02-05  5:57 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-02-05  5:57 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0ef416e7edc4c66a06a3c05025720dfc98cf07f5

commit r12-7068-g0ef416e7edc4c66a06a3c05025720dfc98cf07f5
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Feb 3 16:23:24 2022 -0500

    c++: add comment
    
    gcc/cp/ChangeLog:
    
            * pt.cc (iterative_hash_template_arg): Add comment.

Diff:
---
 gcc/cp/pt.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc
index 60641d89c19..f6406126b5b 100644
--- a/gcc/cp/pt.cc
+++ b/gcc/cp/pt.cc
@@ -1797,6 +1797,10 @@ iterative_hash_template_arg (tree arg, hashval_t val)
   switch (code)
     {
     case ARGUMENT_PACK_SELECT:
+      /* Getting here with an ARGUMENT_PACK_SELECT means we're probably
+	 preserving it in a hash table, which is bad because it will change
+	 meaning when gen_elem_of_pack_expansion_instantiation changes the
+	 ARGUMENT_PACK_SELECT_INDEX.  */
       gcc_unreachable ();
 
     case ERROR_MARK:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-05  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-05  5:57 [gcc r12-7068] c++: add comment Jason Merrill

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).