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

           Summary: ICE cannot be evaluated!; UNREACHABLE executed at
                    Expr.cpp:1916!
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
   Estimated Hours: 0.0


Created an attachment (id=4270)
 --> (http://www.llvm.org/bugs/attachment.cgi?id=4270)
testcase

$ cat unreach.cpp 
class FCHKFormat
{
    template<class T>  static bool read_numbers(const char * const, int &,
const unsigned int width = 0);
};
template<class T>
bool FCHKFormat::read_numbers(const char * const line, int & v, const unsigned
int width)
{
    int maxColumns = 80 / width;
}

$ clang++ unreach.cpp 
ICE cannot be evaluated!
UNREACHABLE executed at Expr.cpp:1916!
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name unreach.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-pb9PKw.s -x c++ unreach.cpp 
1.    unreach.cpp:8:29: current parser token ';'
2.    unreach.cpp:7:1: parsing function body 'FCHKFormat::read_numbers'
3.    unreach.cpp:7:1: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to