<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks!<br>
      On 04/11/2014 03:11 AM, Richard Smith wrote:<br>
    </div>
    <blockquote
cite="mid:CAOfiQqk2ZkCjSi1qvJrLfVzJJG=D+HnSpyFwZQ=3_652n6FU7g@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">This was a Clang bug. Fixed in r206011.</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Fri, Mar 28, 2014 at 3:03 AM, Vassil
          Vassilev <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:vasil.georgiev.vasilev@cern.ch"
              target="_blank">vasil.georgiev.vasilev@cern.ch</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            cat T.h<br>
            <br>
            namespace N {<br>
               struct A {<br>
                  friend struct B;<br>
               };<br>
            }<br>
            <br>
            namespace M {<br>
               struct B{};<br>
            }<br>
            namespace N {<br>
               using M::B;<br>
            }<br>
            <br>
            If I compile this with clang (close to trunk) it is all
            good: clang -fsyntax-only -x c++ T.h<br>
            If I compile it with gcc (4.8.1): g++ -fsyntax-only -x c++
            T.h<br>
            T.h:11:17: error: ‘B’ is already declared in this scope<br>
                using M::B;<br>
                             ^<br>
            My question is if this is a bug in clang or in gcc (so that
            I know where to submit it to).<br>
            <br>
            Vassil<br>
            _______________________________________________<br>
            cfe-dev mailing list<br>
            <a moz-do-not-send="true" href="mailto:cfe-dev@cs.uiuc.edu"
              target="_blank">cfe-dev@cs.uiuc.edu</a><br>
            <a moz-do-not-send="true"
              href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev"
              target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>