public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Proposed patch to fix bug id, 89796 on bugzilla
@ 2019-03-25 12:39 Nicholas Krause
  2019-03-25 13:25 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Nicholas Krause @ 2019-03-25 12:39 UTC (permalink / raw)
  To: gcc

Not sure if this is a correct fix to this bug found here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89796 but
comments are welcome. If a backtrace is required please
let me know. I am just sending it to the development list
for review to make sure it's OK in terms of my understanding
the code.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 gcc/cp/constraint.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/constraint.cc b/gcc/cp/constraint.cc
index 9884eb0db50..a78d0a9a49b 100644
--- a/gcc/cp/constraint.cc
+++ b/gcc/cp/constraint.cc
@@ -1882,7 +1882,7 @@ tsubst_requires_expr (tree t, tree args,
   tree parms = TREE_OPERAND (t, 0);
   if (parms)
     {
-      parms = tsubst_constraint_variables (parms, args, complain, in_decl);
+      parms = tsubst_constraint_variables (PARM_CONSTR_PARMS (parms), args, complain, in_decl);
       if (parms == error_mark_node)
         return error_mark_node;
     }
-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-25 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-25 12:39 [PATCH] Proposed patch to fix bug id, 89796 on bugzilla Nicholas Krause
2019-03-25 13:25 ` Jonathan Wakely
2019-03-25 13:26   ` nick
2019-03-25 13:30     ` Jonathan Wakely
2019-03-25 13:36       ` nick

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