]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
allow kind_type for a constructor with integers
authorAndrew Macleod <amacleod@gcc.gnu.org>
Fri, 13 Apr 2018 16:19:37 +0000 (16:19 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Fri, 13 Apr 2018 16:19:37 +0000 (16:19 +0000)
From-SVN: r259376

gcc/range.h

index 125a803cbaf3c87e978afee30c4dc2d3ea8a010a..37a57f7000f3ad6357fbba4f18b39c03c52056bb 100644 (file)
@@ -82,7 +82,8 @@ class irange
     { set_range (typ, wi::to_wide (lbound), wi::to_wide (ubound), rt); }
   irange (const irange &);
   irange (const irange_storage *stor, tree typ) { set_range (stor, typ); }
-  irange (const_tree t, int x, int y) { set_range (t, x, y, PLAIN); }
+  irange (const_tree t, int x, int y, kind k = PLAIN)
+                                                   { set_range (t, x, y, k); }
 
   void set_range (const irange_storage *, const_tree);
   void set_range (const_tree);