I came across the following diagnostic output when I examined the output of test/FixIt/fixit-cxx0x.cpp:<br><br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><pre>
<span class="terminalStyle1" style="font-weight: bold; ">/tmp/webcompile/_934_0.cc:8:3: </span><span class="terminalStyle0"></span><span class="terminalStyle131" style="color: red; font-weight: bold; ">error: </span><span class="terminalStyle0"></span><span class="terminalStyle1" style="font-weight: bold; ">switch condition type 'foo' requires explicit conversion to 'int'
</span><span class="terminalStyle0">  switch(foo())
</span><span class="terminalStyle132" style="color: green; font-weight: bold; ">  ^
</span><span class="terminalStyle0"></span><span class="terminalStyle032" style="color: green; ">         stati)_cast<int>(</span></pre></span><br>Which shows two problems:<br><br>1) Multiple carets points don't seem to be shown, only the first one (in this case, the location of the diagnostic, not the location of either of the suggested FixIts)<br>
2) If two FixIts overlap, in this case causing the second (")") to be embedded inside the first (replacing the "c" in "static")<br><br>Are these known issues? Has there been any thought/discussion on how they should be fixed? (I imagine fixing (1) shouldn't be terribly hard, but I haven't looked. Though (2) will presumably require slightly more work to shift the fixits across and make it clear which piece is to be inserted where)<br>
<br>- David<br><pre><span class="terminalStyle1"></span><br></pre>