<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJytWN1vozgQ_2uSlwjER0jgIQ-FtNJJp9uTent7b5UDDnjX2BE2TXf_-puxgUBJ29zeSojg8cx4Pn8ZOMji-y7jRJQrVcmzWpHVIghaRR15dFrBNCOc_aCF80x4S2FrdSaNYMB-rqgA7qPSDSX1iqkVSBWLMF0torSiDV1E-0UQV1qf1CK8WwQPcJWyOEiuXdmUhhCWZssHRrjeXlSwyGVB7wumZbMIMmZ24yPjVJCamtUWmLewd5RCP-aEI9Vfd4TPiv75Ytk8y_YVt-EXnUf1iyAK0u6WKcpprpkU9hwqikzytsblBrZh_TsT9I-2PtAGaCEYmZ2kYigy4eyJc_bhiEdNGj0Rmm5dEZ1LXGVMcEe2Td4FCL0Lmch5W0Au0dkw6xKIz_dw8-6uMTF5CxfwQGXcwvP0zOj5fUb6ktOTycD7-r4rTesn2jRYFz1nq4whKdaGOpEc2ZUukCHtVXl3OSdKwc79cBRGKT21B86gHNKRCSi17UXT4eo9vrBmBNrgck6nK7ybiQIhsjchC6Zy0qB52DPmluZSKI2_FQHHUPRcEW3aIRltC2mPhscjE4S_aer4aqhuGzEz2y2IJv0Jl0hNbN7uZ1T6cgIfmZ5EMoh7C6cZDzZovA1SYuP9OnbxsH2LL-xofmODFb4RdaE91dOZ6aqnY-VHmeifE6v89cF990fh3izmgh8FxT6Na2yokJLqB0CrDLCICj2LTx8aRDQbf6tvfh4bOtYwP3aL2EpmyCEN4oZ3TLyZyj5sYxWjgKcWr_sucxx4-mKRH54MvL-XlMFrDpDExKnV1rJjy3m3vB7Ky3WujD9oI4QO9byyNpuqT24tmPE12OOS0wmqBo4Yqfy4Ht7sk496ZmLE4JSbc2k64CbNQxd_GFVjQUq5KXJdNfL8qlfR0SCTLS8MpKDvEuJhhaPMbHe3PihdpQ7LnmfgTm13vxYrqaANy59yomkpm-_WWxdwWpESfQcoF7LP56iXLk3mQWGjiTXBAo_tgjRlbovigphAex5wdv9egWg05IbimXWxcU_Jmuqq6-LgI_gE-NN5ZUu7B4FRMiwO3Ix_OcSrb9PullJ3_F9xO5IPFXX_z29_PT1-zrL7x8dZEmzdZ9zOFJGdpsRktpJ2lY1nqrSbRCwh7IY1PZazOc--AS3YuP7Gj7dJnETRxg-jzeXI9TtH2gXin3dFe3bDlFmfIMGjGXOghDgwiNIPPVQN5a9pY0fb-DAx5QB_xFBPYxIoqaFgPgk-pRe0BpWcTomswfHvmaoJmb7QvNVTVqh9yifTL2eHBk7PYFqecAIi12NGjMaRk1L9DX_Mn7DZf_UMDZaoUXjxQGlqvHPL6Say_UgsAMWpc1QEXz1-mEFqX9Pa4MSI7liaoxuSf3Nkw0omlK1hpzScQjqyZto5NjACOieJgWqGHTCjRjWKwXgmSgc85aornbcnf__K5O9fG_zHxBn3G3P_fGsuORe4xjeZ-n2Tekpfp_6G7n2JN85mjRBj0hukfuh6rmeBa9LaiDn9q9nQ3UjMhm4ayMn7fR_FbhT74TbyPWh-D3B71vdYxuvYDdeeF3vJ1t9ESbL-RXiAECBbbQeWOQCYCrCO2sWNfXJuyOknMvCpsySVOK29n4__FOmKksI4NHTmPMSR72JkfUhCDLH2fy7CfV63oRuHsR94vrdehzH60Z8Zfgjn15R2wsFPCT8DctsWXy-8_QL_2jBa-Pmj-0SxAlz4Zr6J5ARfJldMu8tiFxZJmJAlaXUlmx0kusFXzLW3dqJk2TZ89-p7B7yDtAcXKggWnD_3P86pkV-h1WHJlGoB6IOHKPQSb1ntcm8bHzZ5HG6ShEDI8ny7PdKNF5A8JnGeLzk5wCi3W-BYEwh6XhkV8LyI9sv_bwHbBV6AeYqDYA1t6Ho-HLguouS4JdtoHS7WHvxrMe6iHvyUs2x2RuWhLRVscqa0umzCOzYrBaXGYLBQM83p7oHANLqyIPlMV_iytrrgO5RmB_srIor-I9PSWLozZv4LMBAivg>53090</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            False positive with -fsanitizer=memory and fstream
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Username404-59
      </td>
    </tr>
</table>

<pre>
    Clang shows a "use-of-unitialized-value" warning when a fstream is used; [here](https://godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(filename:'1',fontScale:14,fontUsePx:'0',j:1,lang:c%2B%2B,selection:(endColumn:6,endLineNumber:38,positionColumn:6,positionLineNumber:38,selectionStartColumn:6,selectionStartLineNumber:38,startColumn:6,startLineNumber:38),source:'%23include+%3Cfstream%3E%0A%23include+%3Ciostream%3E%0A%23include+%3Cstring%3E%0A%23include+%3Cstring_view%3E%0A%23include+%3Cexception%3E%0A%23include+%3Csystem_error%3E%0Ausing+namespace+std%3B%0A%0Aclass+Exception:+public+exception+%7B%0A++++string+exceptionCause%3B%0Apublic:%0A++++%5B%5Bnodiscard%5D%5D+const+char*+what()+const+noexcept+final+%7B%0A++++++++return+exceptionCause.data()%3B%0A++++%7D%0A++++explicit+Exception(const+string_view%26+cause):+exceptionCause(cause)+%7B%0A++++++++if+(!!cause.ends_with(!'%5Cn!'))+exceptionCause+%2B%3D+!'%5Cn!'%3B%0A++++%7D%0A%7D%3B%0A%0Astring+getFileContent(const+string%26+file)%0A%7B%0A++++ifstream+fileStream(file,+ios::in)%3B%0A++++if+(fileStream)+%7B+//+%3C--+Warning+here%0A++++++++string+lineinput,+fullinput%3B%0A++++++++while+(getline(fileStream,+lineinput))+%7B%0A++++++++++++fullinput.append(lineinput+%2B%3D+!'%5Cn!')%3B%0A++++++++%7D%0A++++++++fileStream.close()%3B%0A++++++++return+fullinput%3B%0A++++%7D+else+throw+Exception(%22Could+not+open+%5C%22%22+%2B+file+%2B+%22%5C%22+:+%22+%2B+generic_category().message(errno))%3B%0A%7D%0A%0Aint+main(int+argc,+char*+argv%5B%5D)+%7B%0A++++try+%7B%0A++++++++getFileContent(%22something%22)%3B%0A++++%7D+catch+(const+Exception%26+e)+%7B%0A++++++++cerr+%3C%3C+e.what()%3B%0A++++%7D%0A++++return+EXIT_SUCCESS%3B%0A%7D'),l:'5',n:'0',o:'C%2B%2B+source+%231',t:'0')),k:26.161879895561356,l:'4',n:'0',o:'',s:0,t:'0'),(g:!((g:!((h:compiler,i:(compiler:clang1300,filters:(b:'0',binary:'0',commentOnly:'0',demangle:'0',directives:'0',execute:'0',intel:'1',libraryCode:'0',trim:'1'),flagsViewOpen:'1',fontScale:14,fontUsePx:'0',j:1,lang:c%2B%2B,libs:!(),options:'-std%3Dc%2B%2B20+-fsanitize%3Dmemory+-fsanitize-memory-track-origins++-g+-fno-omit-frame-pointer+-fno-optimize-sibling-calls',selection:(endColumn:1,endLineNumber:1,positionColumn:1,positionLineNumber:1,selectionStartColumn:1,selectionStartLineNumber:1,startColumn:1,startLineNumber:1),source:1,tree:'1'),l:'5',n:'0',o:'x86-64+clang+13.0.0+(C%2B%2B,+Editor+%231,+Compiler+%231)',t:'0')),k:58.581375108790255,l:'4',m:48.34008097165994,n:'0',o:'',s:0,t:'0'),(g:!((h:output,i:(compiler:1,editor:1,fontScale:14,fontUsePx:'0',wrap:'1'),l:'5',n:'0',o:'Output+of+x86-64+clang+13.0.0+(Compiler+%231)',t:'0')),header:(),l:'4',m:51.6599190283401,n:'0',o:'',s:0,t:'0')),k:73.83812010443864,l:'3',n:'0',o:'',t:'0')),l:'2',n:'0',o:'',t:'0')),version:4
)'s a godbolt link showcasing it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytWN1vozgQ_2uSlwjEZwIPeSiklU463Z7U27t7qxxwwLsOjmzTdPevvxkbCJS0zVUrRQSPZ8bz-WNgL8of25yTplqpWpzViqwWQdAq6oiD0zZMM8LZT1o6z4S3FLZWZyIbBuznmjbAfVBaUnJcMbUCqXIRZqtFnNVU0kW8WwRJrfVJLcK7RfAAv0qUe8G1K2RlCGFltnxghN_bixoWhSjp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