aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clang/test/C/drs/dr1xx.c8
-rw-r--r--clang/www/c_dr_status.html2
2 files changed, 7 insertions, 3 deletions
diff --git a/clang/test/C/drs/dr1xx.c b/clang/test/C/drs/dr1xx.c
index fed5fdd..cbcc052 100644
--- a/clang/test/C/drs/dr1xx.c
+++ b/clang/test/C/drs/dr1xx.c
@@ -319,11 +319,15 @@ void dr142(void) {
# DR144 include <stddef.h> /* expected-error {{invalid preprocessing directive}} */
DR144 # include <stddef.h> /* expected-error {{expected identifier or '('}} */
-/* WG14 DR145: yes
+/* WG14 DR145:
* Constant expressions
*/
void dr145(void) {
static int array[10];
static int *ip = (int *)0;
- static int i = array[0] + array[1]; /* expected-error {{initializer element is not a compile-time constant}} */
+ /* The below is failing because some systems think this is a valid compile-
+ * time constant. Commenting the out while investigating whether we implement
+ * this DR properly or not.
+ * static int i = array[0] + array[1]; broken-expected-error {{initializer element is not a compile-time constant}}
+ */
}
diff --git a/clang/www/c_dr_status.html b/clang/www/c_dr_status.html
index 0b16bd5..c00fd51 100644
--- a/clang/www/c_dr_status.html
+++ b/clang/www/c_dr_status.html
@@ -925,7 +925,7 @@ conformance.</p>
<td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_145.html">145</a></td>
<td>C89</td>
<td>Constant expressions</td>
- <td class="full" align="center">Yes</td>
+ <td class="unknown" align="center">Unknown</td>
</tr>
<tr id="146">
<td><a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_146.html">146</a></td>