PR c++/28257
PR c++/28259
PR c++/28267
* toplev.c (compile_file): Return early on errorcount or sorrycount.
* cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
(cgraph_optimize): Likewise.
PR c++/28250
* g++.dg/eh/catch4.C: New test.
PR c++/28257
* g++.dg/other/qual1.C: New test.
PR c++/28259
* g++.dg/inherit/error2.C: New test.
PR c++/28267
* g++.dg/other/new1.C: New test.
* g++.dg/warn/pr23075.C: Remove obsolete test.
* g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker.
* g++.old-deja/g++.jason/report.C: Remove dg-warning marker.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115866
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/28250
+ PR c++/28257
+ PR c++/28259
+ PR c++/28267
+ * toplev.c (compile_file): Return early on errorcount or sorrycount.
+ * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
+ (cgraph_optimize): Likewise.
+
2006-08-01 Stuart Hastings <stuart@apple.com>
* rtl.h (UINTVAL) New.
static struct cgraph_node *first_analyzed;
static struct cgraph_varpool_node *first_analyzed_var;
+ if (errorcount || sorrycount)
+ return;
+
finish_aliases_1 ();
if (!flag_unit_at_a_time)
void
cgraph_optimize (void)
{
+ if (errorcount || sorrycount)
+ return;
+
#ifdef ENABLE_CHECKING
verify_cgraph ();
#endif
+2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/28250
+ * g++.dg/eh/catch4.C: New test.
+
+ PR c++/28257
+ * g++.dg/other/qual1.C: New test.
+
+ PR c++/28259
+ * g++.dg/inherit/error2.C: New test.
+
+ PR c++/28267
+ * g++.dg/other/new1.C: New test.
+
+ * g++.dg/warn/pr23075.C: Remove obsolete test.
+ * g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker.
+ * g++.old-deja/g++.jason/report.C: Remove dg-warning marker.
+
2006-07-31 Mark Mitchell <mark@codesourcery.com>
PR c++/28523
--- /dev/null
+// PR c++/28250
+// { dg-do compile }
+
+void foo()
+{
+ try { throw; }
+ catch () {} // { dg-error "type-specifier" }
+}
--- /dev/null
+// PR c++/28259
+// { dg-do compile }
+
+struct A
+{
+ virtual A* foo();
+};
+
+struct B : virtual A; // { dg-error "before" }
+
+struct C : A
+{
+ virtual B* foo();
+};
+
+B* C::foo() { return 0; }
--- /dev/null
+// PR c++/28267
+// { dg-do compile }
+
+struct A
+{
+ A();
+ void* operator new(__SIZE_TYPE__, int = X); // { dg-error "not declared" }
+ void operator delete(void*, int);
+};
+
+void foo()
+{
+ new A;
+}
--- /dev/null
+// PR c++/28257
+// { dg-do compile }
+
+struct A
+{
+ int i;
+ void foo()
+ {
+ int A::i = i; // { dg-error "extra qualification|not a static member" }
+ }
+};
{
return; // { dg-error "with no value" }
} // { dg-bogus "control reaches end" }
-
-int
-bar (void)
-{
-} // { dg-warning "control reaches end" }
A &f(A &a) {// { dg-error "" } new decl.*
std::cout << "Blah\n";
-} // { dg-warning "" } no return
-
+}
bar2 wa [5];
wa[0] = baz(f);
undef2 (1); // { dg-error "" } implicit declaration
-} // { dg-warning "" } no return
+}
int ninny ()
{
int darg (char X::*p)
{
undef3 (1); // { dg-error "" } implicit declaration
-} // { dg-warning "" } no return
+}
what's left of the symbol table output. */
timevar_pop (TV_PARSE);
- if (flag_syntax_only)
+ if (flag_syntax_only || errorcount || sorrycount)
return;
lang_hooks.decls.final_write_globals ();