]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add comment
authorJason Merrill <jason@redhat.com>
Tue, 15 Mar 2022 20:23:47 +0000 (16:23 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 28 Mar 2022 19:36:12 +0000 (15:36 -0400)
gcc/cp/ChangeLog:

* pt.cc (determine_specialization): Add comment.

gcc/cp/pt.cc

index cd07e48cb5a05bcc9480a272270266f0edb3909f..ece839c22e339aab3fc91326400adec8687a059f 100644 (file)
@@ -2325,6 +2325,8 @@ determine_specialization (tree template_id,
                continue;
              if (freq)
                {
+                 /* C++20 CA104: Substitute directly into the
+                    constraint-expression.  */
                  tree fargs = DECL_TI_ARGS (fn);
                  tsubst_flags_t complain = tf_none;
                  freq = tsubst_constraint (freq, fargs, complain, fn);