Skip to content

Commit 8fe775a

Browse files
authored
[dcl.init.ref] Fix misapplication of CWG2879 (#8147)
1 parent 939c73b commit 8fe775a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6296,8 +6296,8 @@
62966296
}
62976297
constexpr int z = f(); // error: not a constant expression
62986298

6299-
typedef int *A[3]; // array of 3 pointer to \tcode{int}
6300-
typedef const int *const CA[3]; // array of 3 const pointer to \tcode{const int}
6299+
typedef int *AP[3]; // array of 3 pointer to \tcode{int}
6300+
typedef const int *const ACPC[3]; // array of 3 const pointer to \tcode{const int}
63016301
ACPC &&r = AP{}; // binds directly
63026302
\end{codeblock}
63036303
\end{example}

0 commit comments

Comments
 (0)