<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>195205</bug_id>
          
          <creation_ts>2019-03-01 03:02:51 -0800</creation_ts>
          <short_desc>Fix debug builds with GCC</short_desc>
          <delta_ts>2019-03-01 05:38:09 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Inführ">dominik.infuehr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>csaavedra</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fred.wang</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1511357</commentid>
    <comment_count>0</comment_count>
    <who name="Dominik Inführ">dominik.infuehr</who>
    <bug_when>2019-03-01 03:02:51 -0800</bug_when>
    <thetext>Fix debug builds with GCC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511358</commentid>
    <comment_count>1</comment_count>
      <attachid>363319</attachid>
    <who name="Dominik Inführ">dominik.infuehr</who>
    <bug_when>2019-03-01 03:04:14 -0800</bug_when>
    <thetext>Created attachment 363319
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511368</commentid>
    <comment_count>2</comment_count>
      <attachid>363319</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-01 03:43:38 -0800</bug_when>
    <thetext>Comment on attachment 363319
Patch

Clearing flags on attachment: 363319

Committed r242262: &lt;https://trac.webkit.org/changeset/242262&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511369</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-01 03:43:39 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511370</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-01 03:44:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/48506653&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511371</commentid>
    <comment_count>5</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2019-03-01 03:46:48 -0800</bug_when>
    <thetext>Why not add a ASSERT_NOT_REACHED_UNDER_CONSTEXPR that would expand to ASSERT_UNDER_CONSTEXPR(false) instead? Removing the constexpr you&apos;re dropping its benefits for all builds, just for the sake of the few that expand the macro (debug builds).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511372</commentid>
    <comment_count>6</comment_count>
    <who name="Dominik Inführ">dominik.infuehr</who>
    <bug_when>2019-03-01 04:04:12 -0800</bug_when>
    <thetext>I would have preferred that solution as well: But using ASSERT_UNDER_CONSTEXPR_CONTEXT(false) failed to build for me as well. The macro invokes WTFReportAssertionFailure which isn&apos;t constexpr. Since Saam recommended to remove the constexpr keyword in https://bugs.webkit.org/show_bug.cgi?id=194912 I used this solution to get the build working again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511377</commentid>
    <comment_count>7</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2019-03-01 05:02:35 -0800</bug_when>
    <thetext>+fredw

&gt; The macro invokes WTFReportAssertionFailure which isn&apos;t constexpr.

Isn&apos;t that then a bug in ASSERT_UNDER_CONSTEXPR_CONTEXT()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511380</commentid>
    <comment_count>8</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-03-01 05:19:49 -0800</bug_when>
    <thetext>(In reply to Claudio Saavedra from comment #7)
&gt; +fredw
&gt; 
&gt; &gt; The macro invokes WTFReportAssertionFailure which isn&apos;t constexpr.
&gt; 
&gt; Isn&apos;t that then a bug in ASSERT_UNDER_CONSTEXPR_CONTEXT()?

I think this is expected, as the name indicates it only works under a constexpr context. cc&apos;in Yusuke since he is the one who initially introduced this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511385</commentid>
    <comment_count>9</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2019-03-01 05:38:09 -0800</bug_when>
    <thetext>(In reply to Frédéric Wang (:fredw) from comment #8)
&gt; (In reply to Claudio Saavedra from comment #7)
&gt; &gt; +fredw
&gt; &gt; 
&gt; &gt; &gt; The macro invokes WTFReportAssertionFailure which isn&apos;t constexpr.
&gt; &gt; 
&gt; &gt; Isn&apos;t that then a bug in ASSERT_UNDER_CONSTEXPR_CONTEXT()?
&gt; 
&gt; I think this is expected, as the name indicates it only works under a
&gt; constexpr context. cc&apos;in Yusuke since he is the one who initially introduced
&gt; this.

But it&apos;s ASSERT_UNDER_CONSTEXPR_CONTEXT() that ends up calling WTFReportAssertionFailure(), which is not constexpr. I understood that the idea of ASSERT_UNDER_CONSTEXPR_CONTEXT() was to allow for assertions when the calling methods are constexpr, but it won&apos;t work.

Unless I&apos;m understanding it completely wrong, of course :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>363319</attachid>
            <date>2019-03-01 03:04:14 -0800</date>
            <delta_ts>2019-03-01 03:43:38 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-195205-20190301120412.patch</filename>
            <type>text/plain</type>
            <size>1350</size>
            <attacher name="Dominik Inführ">dominik.infuehr</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQyMjYxCmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCBk
MjZmNTQ2YWQyMmQ3N2RhYzU1MmEzODA4OTcyN2JlYTVlMmM4ODFmLi45YzdmYWNjOGEwYTE0YTkx
YjI5YTA2ZDJkOGFlNzNiNmUwOGUwNzcxIDEwMDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKQEAgLTEs
MyArMSwxNCBAQAorMjAxOS0wMy0wMSAgRG9taW5payBJbmZ1ZWhyICA8ZGluZnVlaHJAaWdhbGlh
LmNvbT4KKworICAgICAgICBGaXggZGVidWcgYnVpbGRzIHdpdGggR0NDCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xOTUyMDUKKworICAgICAgICBVbnJl
dmlld2VkLiBGaXggZGVidWcgYnVpbGRzIGluIEdDQyBieSByZW1vdmluZworICAgICAgICB0aGUg
Y29uc3RleHByLWtleXdvcmQgZm9yIHRoaXMgZnVuY3Rpb24uCisKKyAgICAgICAgKiBydW50aW1l
L0NhY2hlZFR5cGVzLmNwcDoKKyAgICAgICAgKEpTQzo6dGFnRnJvbVNvdXJjZUNvZGVUeXBlKToK
KwogMjA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