-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 18486 |
| Version | trunk |
| OS | All |
| CC | @DougGregor,@zygoloid |
Extended Description
I think that sample code below should cause error because TEST is ambiguous.
namespace FOO {
template<int I>
struct FOO {};
}
using namespace FOO;
void f() { FOO<0> x; }However, an error does not actually occur.
If above sample is well-formed, why is next code ill-formed?
template<int I>
struct FOO {};
namespace BAR {
namespace FOO {
void f() { FOO<0> x; }
}
}Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"