<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 3:41 AM, Wilhelm <span dir="ltr"><<a href="mailto:wilhelm.meier@fh-kl.de" target="_blank">wilhelm.meier@fh-kl.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Am 27.03.2015 um 17:15 schrieb David Blaikie:<br>
><br>
><br>
> On Fri, Mar 27, 2015 at 3:26 AM, Wilhelm <<a href="mailto:wilhelm.meier@fh-kl.de">wilhelm.meier@fh-kl.de</a><br>
</span><span class="">> <mailto:<a href="mailto:wilhelm.meier@fh-kl.de">wilhelm.meier@fh-kl.de</a>>> wrote:<br>
><br>
>     Hi all,<br>
><br>
>     why does this wrong code compile with clang++ 3.6 (g++ rejects it<br>
>     correctly)?<br>
><br>
><br>
> Yep. Looks like a bug to me. I think we had the same bug for return<br>
> types of abstract classes too & that was fixed a few months ago. Seems<br>
> we haven't fully flushed out these issues...<br>
<br>
</span>Is this already filed as bug? Or fixed in upstream version?<br></blockquote><div><br>The abstract return type one I think was filed/fixed, but I can't find the specific details.<br><br>The abstract parameter type you've described/shown here doesn't seem to be filed or fixed. If you'd like to file a bug (<a href="http://llvm.org/bugs">llvm.org/bugs</a>) that'd be great.<br><br>- David<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
><br>
><br>
><br>
>     class Abc<br>
>     {<br>
>     public:<br>
>         virtual void foo() const = 0;<br>
>         virtual ~Abc() {}<br>
>     };<br>
>     class Impl : public Abc {<br>
>     public:<br>
>         void foo() const {}<br>
>     };<br>
>     class B<br>
>     {<br>
>     public:<br>
>         void bar(Abc o)<br>
>         {<br>
>             o.foo();<br>
>         }<br>
>     };<br>
>     int main()<br>
>     {<br>
>         B b;<br>
>         Impl i;<br>
>         b.bar(i);<br>
>     }<br>
><br>
>     --<br>
>     Wilhelm<br>
>     _______________________________________________<br>
>     cfe-dev mailing list<br>
</span>>     <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a> <mailto:<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>><br>
>     <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Wilhelm<br>
</font></span></blockquote></div><br></div></div>