[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / pr51264-4.C
blob58a1b14c4095c1803082fff5fc293c319ef4910c
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -Werror -Wreturn-type" } */
4 /* Test-case from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25973#c4.  */
6 struct Block
8   public:
9   Block ();
10   ~Block ();
13 bool func (bool bar)
15   Block block;
16   bool foo = false;
18   if (!foo || bar)
19     do
20       {
21         return true;
22       }
23     while (0);
24   else
25     do
26       {
27         return false;
28       }
29     while (0);