Bug 431564 - StepIntoSelectionTestApp.cc:41: sequence point problems
Summary: StepIntoSelectionTestApp.cc:41: sequence point problems
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-29 10:49 EDT by David Binderman CLA
Modified: 2020-09-04 15:26 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman CLA 2014-03-29 10:49:00 EDT
I just tried to compile cdt with the clang compiler.

It said

StepIntoSelectionTestApp.cc:41:27: warning: unsequenced modification and access to 'a' [-Wunsequenced]

Source code is

    return a + recursiveTest(--a);

Suggest rework code.
Comment 1 Marc Khouzam CLA 2014-03-31 11:49:36 EDT
For clarity, this is a test program in our test plugin o.e.cdt.tests.dsf.gdb.