This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271296 - Clank hints: code with 'throw'
Summary: Clank hints: code with 'throw'
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-15 11:18 UTC by soldatov
Modified: 2017-08-23 02:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2017-08-15 11:18:17 UTC
If any C++ code contains 'throw' keyword I see "cannot use 'throw' with exceptions disabled" error (red sign).

int main(int argc, char** argv) {
    throw 1;
    return 0;
}

P.S. Clank hints should be switched on in order to reproduce bug.
Comment 1 Maria Tishkova 2017-08-21 16:20:46 UTC
Fixed.

Behaves the same way compiler does. If there are -fno-exceptions (or -noex for Studio compiler) the  error mentioned will be displayed in the editor - otherwise not.

changeset:   304469:2231e5a1c7ac
tag:         tip
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Mon Aug 21 19:19:11 2017 +0300
summary:     fixed bz#271296 - Clank hints: code with 'throw'
Comment 2 Quality Engineering 2017-08-23 02:56:44 UTC
Integrated into 'main-silver', will be available in build *201708230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2231e5a1c7ac
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#271296 - Clank hints: code with 'throw'
behaves as compiler does.  probably need to check Compile single file action for additional source of information