Commit 08c2481a by Ian Lance Taylor Committed by Ian Lance Taylor

re PR middle-end/19583 (Incorrect diagnostic: control may reach end of non-void…

re PR middle-end/19583 (Incorrect diagnostic: control may reach end of non-void function '...' being inlined)

	PR middle-end/19583
	* g++.dg/warn/Wreturn-type-3.C: New test.

From-SVN: r94778
parent 5eefcf2f
2005-02-09 Ian Lance Taylor <ian@airs.com>
PR middle-end/19583
* g++.dg/warn/Wreturn-type-3.C: New test.
2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
PR middle-end/19402
......
// PR middle-end/19583
// { dg-options "-Wreturn-type -O" }
struct E{};
inline int bar() throw(E)
{
return 0;
}
void foo ()
{
bar();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment