[LLVMbugs] [Bug 10759] clang crashes from gcc torture test g++.dg/overload/defrag1.C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 21 02:59:26 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=10759

Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |asl at math.spbu.ru
         Resolution|---                         |FIXED

--- Comment #1 from Anton Korobeynikov <asl at math.spbu.ru> ---
Does not crash for me anymore:

$ clang++ defarg1.C 
defarg1.C:4:21: error: call to function 'foo' that is neither visible in the
template definition nor found by argument-dependent lookup
int foo (T t, int = foo(T()));
                    ^
defarg1.C:8:3: note: in instantiation of default function argument expression
for 'foo<int>' required here
  foo(0);                       // { dg-error "default argument" }
  ^
defarg1.C:4:5: note: 'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130421/5d3f7d29/attachment.html>


More information about the llvm-bugs mailing list