Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342321 - && (get address of a label) C operator is not recognized
Summary: && (get address of a label) C operator is not recognized
Status: CLOSED DUPLICATE of bug 84144
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 13:53 EDT by Ivan Pozdeev CLA
Modified: 2011-04-11 02:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Pozdeev CLA 2011-04-08 13:53:25 EDT
Build Identifier: 201102110609

This is a GNU extension operator that is only present in GCC
(see http://stackoverflow.com/questions/1777990/c-programming-address-of-a-label and http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#index-address-operator-155 ).

However, the majority of "makefile project from existing code" wizard's bindings is against GNU build system variations so it should probably understand GNU extensions, at least when a GNU C/C++ compiler is selected in the toolchain.

Reproducible: Always

Steps to Reproduce:
1. Run "Makefile project from existing code" against any code that uses the operator - e.g. http://rpm.pbone.net/index.php3/stat/26/dist/55/size/333607/name/procps-3.2.7-16.el5.src.rpm
2. Go to the code that uses the operator (e.g. ps/global.c:183)
3. The line will be marked as a syntax error. If you replace all '&&'s with, say, '&'s, the mark vanishes.
Comment 1 Markus Schorn CLA 2011-04-11 02:48:26 EDT

*** This bug has been marked as a duplicate of bug 84144 ***