13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>namespace N {template struct A {};}struct A {int i;};struct B : N::A {B() { A x; x.i = 1; } // g++ uses ::A, not N::A};• The injected class name is found in certain contexts in which the constructor should be found instead.struct A {A(int) {};};A::A a(1);• In a constructor definition, what should be treated as a template argument list of the constructor isinstead treated as the template argument list of the enclosing class.template struct A { };template struct A {template A(T i, int j);};template A::A(int i, int j) { }// accepted in g++ mode• A difference in calling convention is ignored when redeclaring a typedef.typedef void F();extern "C" {typedef void F(); // Accepted in GNU C++ mode// (error otherwise)}• The macro __GNUG__ is defined identically to __GNUC__ (i.e., the major version number of the GNUcompiler version that is being emulated).• The macro _GNU_SOURCE is defined as "1".• Guiding declarations (a feature present in early drafts of the standard, but not in the final standard) aredisabled.• Namespace std is predeclared.• No connection is made between declarations of identical names in different scopes even when thesenames are declared extern "C". E.g.,50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!