public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98924] New: Ambiguous name in concept-id diagnosed as parser error
@ 2021-02-01 18:32 johelegp at gmail dot com
  0 siblings, 0 replies; only message in thread
From: johelegp at gmail dot com @ 2021-02-01 18:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98924

            Bug ID: 98924
           Summary: Ambiguous name in concept-id diagnosed as parser error
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/Txrvos
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/Txrvos.
```C++
namespace A{bool X;}
namespace B{bool X;}
using namespace A;
using namespace B;
template<bool>concept C=true;
bool b=C<X>;
```
```
<source>:6:8: error: parse error in template argument list
    6 | bool b=C<X>;
      |        ^~~~
<source>:6:8: error: template argument 1 is invalid
Compiler returned: 1
```

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-01 18:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 18:32 [Bug c++/98924] New: Ambiguous name in concept-id diagnosed as parser error johelegp at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).