[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-bugs
Subject: [llvm-bugs] [Bug 27587] New: Exceptions are not catched
From: via llvm-bugs <llvm-bugs () lists ! llvm ! org>
Date: 2016-04-30 15:48:39
Message-ID: bug-27587-206 () http ! llvm ! org/bugs/
[Download RAW message or body]
--1462031320.EB5172.12421
Date: Sat, 30 Apr 2016 10:48:40 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://llvm.org/bugs/show_bug.cgi?id=27587
Bug ID: 27587
Summary: Exceptions are not catched
Product: clang
Version: 3.7
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs@nondot.org
Reporter: bitteldany@gmail.com
CC: dgregor@apple.com, llvm-bugs@lists.llvm.org
Classification: Unclassified
Created attachment 16286
--> https://llvm.org/bugs/attachment.cgi?id=16286&action=edit
small project, 5 files
I create an object (constructor), which creates an object. Then calls a
function on the object "GetObject", which only throws an exception.
I cannot catch it, neither in object nor in main.
This is only reproducible in this exact way (see attached files).
G++ compiles and catches it fine. If I only use one header file it seems to
work aswell. If I inline the function it works also. But not this way.
Then there is #include <windows.h>, which might be related. It is //commented
right now, like this, it compiles fine, but the catch doesn't work.
If I un-comment it, it doesn't compile, it gives a "undefined reference to
'LoadJson::GetObjectA()' error.
The name of the function is "GetObject()".. without A.
I'm quite new to c++, let me know, if this is not supposed to work like this.
--
You are receiving this mail because:
You are on the CC list for the bug.
--1462031320.EB5172.12421
Date: Sat, 30 Apr 2016 10:48:40 -0500
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Exceptions are not catched"
href="https://llvm.org/bugs/show_bug.cgi?id=27587">27587</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Exceptions are not catched
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bitteldany@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16286" \
name="attach_16286" title="small project, 5 files">attachment 16286</a> <a \
href="attachment.cgi?id=16286&action=edit" title="small project, 5 \
files">[details]</a></span> small project, 5 files
I create an object (constructor), which creates an object. Then calls a
function on the object "GetObject", which only throws an exception.
I cannot catch it, neither in object nor in main.
This is only reproducible in this exact way (see attached files).
G++ compiles and catches it fine. If I only use one header file it seems to
work aswell. If I inline the function it works also. But not this way.
Then there is #include <windows.h>, which might be related. It is //commented
right now, like this, it compiles fine, but the catch doesn't work.
If I un-comment it, it doesn't compile, it gives a "undefined reference to
'LoadJson::GetObjectA()' error.
The name of the function is "GetObject()".. without A.
I'm quite new to c++, let me know, if this is not supposed to work like this.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>
--1462031320.EB5172.12421--
[Attachment #3 (text/plain)]
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic