summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-07 15:54:15 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-07 15:54:15 +0000
commit3ad0e8cc95ffe5e735411680ae45342d219bbb6b (patch)
tree576e0ec637de9afd595c03b47bb46c01da79d012 /gcc/testsuite/g++.dg/expr
parente2aa7314de5939148a7e7b3d0546c9b52bb31bea (diff)
downloadgcc-3ad0e8cc95ffe5e735411680ae45342d219bbb6b.tar.gz
PR c++/15337
* error.c (c_sizeof_or_alignof_type): Use more detailed error message. PR c++/15766 * parser.c (cp_parser_iteration_statement): Fix typo in error message. PR c++/14777 * pt.c (tsubst_default_argument): Do not defer access checks while substituting into the default argument. PR c++/15554 * pt.c (tsubst_copy): Do not try to substitute for an enumeration constant in a non-dependent context. PR c++/15057 * except.c (build_throw): Ensure that temp_expr has been initialized. PR c++/15337 * g++.dg/expr/sizeof3.C: New test. PR c++/14777 * g++.dg/template/access14.C: New test. PR c++/15554 * g++.dg/template/enum1.C: New test. PR c++/15057 * g++.dg/eh/throw1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/expr')
-rw-r--r--gcc/testsuite/g++.dg/expr/sizeof3.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/expr/sizeof3.C b/gcc/testsuite/g++.dg/expr/sizeof3.C
new file mode 100644
index 00000000000..31338b0b189
--- /dev/null
+++ b/gcc/testsuite/g++.dg/expr/sizeof3.C
@@ -0,0 +1,4 @@
+// PR c++/15337
+
+class CCC;
+int main() { sizeof(CCC); return 0; } // { dg-error ".*CCC.*" }