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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 25 20:09:06 PDT 2011


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

           Summary: clang crashes from gcc torture test
                    g++.dg/overload/defrag1.C
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7138)
 --> (http://llvm.org/bugs/attachment.cgi?id=7138)
defrag1.C

rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:8:3: note: in
      instantiation of default function argument expression for 'foo<int>'
      required here
  foo(0);                       // { dg-error "default argument" }
  ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/defarg1.C:4:5: note: 
      'foo' should be declared prior to the call site
int foo (T t, int = foo(T()));
    ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/overload/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()));
                    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and
include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/cc-z7OeKm.ii

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list