Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2e188e5
CWG233 References vs pointers in UDC overload resolution
burblebee Jul 1, 2024
4596a87
CWG2561 Conversion to function pointer for lambda with explicit objec…
burblebee Jul 1, 2024
0c6f5bc
CWG2588 friend declarations and module linkage
burblebee Jul 1, 2024
f47cbe4
CWG2728 Evaluation of conversions in a delete-expression
burblebee Jul 1, 2024
ba8ff83
CWG2818 Use of predefined reserved identifiers
burblebee Jul 1, 2024
e242072
CWG2836 Conversion rank of long double and extended floating-point types
burblebee Jul 1, 2024
2785faa
CWG2859 Value-initialization with multiple default constructors
burblebee Jul 1, 2024
ac4ca28
CWG2861 dynamic_cast on bad pointer value
burblebee Jul 1, 2024
6230b30
CWG2864 Narrowing floating-point conversions
burblebee Jul 1, 2024
3ca9529
CWG2865 Regression on result of conditional operator
burblebee Jul 1, 2024
f7ee4d7
CWG2867 Order of initialization for structured bindings
burblebee Jul 1, 2024
aa46088
CWG2869 this in local classes
burblebee Jul 1, 2024
f368144
CWG2870 Combining absent encoding-prefixes
burblebee Jul 2, 2024
f6ab13f
CWG2871 User-declared constructor templates inhibiting default constr…
burblebee Jul 2, 2024
be6efd9
CWG2872 Linkage and unclear "can be referred to"
burblebee Jul 2, 2024
4ceed3f
CWG2874 Qualified declarations of partial specializations
burblebee Jul 2, 2024
76bf42d
CWG2877 Type-only lookup for using-enum-declarator
burblebee Jul 2, 2024
0193ee8
CWG2881 Type restrictions for the explicit object parameter of a lambda
burblebee Jul 2, 2024
3d5d613
CWG2882 Unclear treatment of conversion to void
burblebee Jul 2, 2024
7c74329
CWG2883 Definition of "odr-usable" ignores lambda scopes
burblebee Jul 2, 2024
56758c0
CWG2886 Temporaries and trivial potentially-throwing special member f…
burblebee Jul 2, 2024
8400611
CWG2887 Missing compatibility entries for xvalues
burblebee Jul 2, 2024
f20464d
CWG2891 Normative status of implementation limits
burblebee Jul 2, 2024
a09f17d
CWG2892 Unclear usual arithmetic conversions
burblebee Jul 2, 2024
8f43f8d
CWG2895 Initialization should ignore the destination type's cv-qualif…
burblebee Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CWG2877 Type-only lookup for using-enum-declarator
  • Loading branch information
burblebee authored and tkoeppe committed Jul 12, 2024
commit 76bf42de579ef21d4bb53f68e4f6cc411806b504
19 changes: 17 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7477,11 +7477,26 @@
\pnum
A \grammarterm{using-enum-declarator}
names the set of declarations found by
lookup\iref{basic.lookup.unqual,basic.lookup.qual}
for the \grammarterm{using-enum-declarator}.
type-only lookup\iref{basic.lookup.general}
for the \grammarterm{using-enum-declarator}\iref{basic.lookup.unqual,basic.lookup.qual}.
The \grammarterm{using-enum-declarator}
shall designate a non-dependent type
with a reachable \grammarterm{enum-specifier}.
\begin{example}
\begin{codeblock}
enum E { x };
void f() {
int E;
using enum E; // OK
}
using F = E;
using enum F; // OK
template<class T> using EE = T;
void g() {
using enum EE<E>; // OK
}
\end{codeblock}
\end{example}

\pnum
A \grammarterm{using-enum-declaration}
Expand Down