[Bug c++/80886] New: __builtin_constant_p magic has broken at some point

2017-05-26 Thread q....@rsn-tech.co.uk
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: q@rsn-tech.co.uk Target Milestone: --- I'm using g++ for an embedded system, and as is common with such things, hardware addresses are provided as hex constants. I want to create pointers from them,

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2014-10-22 Thread q....@rsn-tech.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #11 from steveren --- (In reply to Manuel López-Ibáñez from comment #10) > (In reply to steveren from comment #6) > > Seems the consensus is that it's not contrary to Standard, but it's agreed > > to be confusing and undesirable by ev

[Bug c/63612] #pragma breaks if...else

2014-10-22 Thread q....@rsn-tech.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63612 --- Comment #6 from steveren --- (In reply to Dietmar Schindler from comment #5) > In news:comp.std.c there is a thread "#pragma are considered statements" - > https://groups.google.com/forum/#!topic/comp.std.c/A1rhyQ5zB7g/discussion - Thanks D

[Bug c/63612] #pragma breaks if...else

2014-10-21 Thread q....@rsn-tech.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63612 --- Comment #3 from steveren --- That seems strange and counterintuitive to say the least. FWIW, three other compilers I've got to hand - clang on Linux, Visual C++ and an old Borland compiler on Windows - all do exactly as I'd expect, printing

[Bug c/63612] New: #pragma breaks if...else

2014-10-21 Thread q....@rsn-tech.co.uk
: unassigned at gcc dot gnu.org Reporter: q@rsn-tech.co.uk The following program fails to compile, giving the error "else without a previous if". Removing (or commenting out) the #pragma restores correct behaviour. int main (int argc, char *argv[]) { if

[Bug c++/61993] constexpr static member function "is not constant"

2014-08-01 Thread q....@rsn-tech.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61993 --- Comment #2 from steveren --- Ah, it is a dupe; sorry, I missed that one.

[Bug c++/61993] New: constexpr static member function "is not constant"

2014-08-01 Thread q....@rsn-tech.co.uk
iority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: q@rsn-tech.co.uk This works: static constexpr int idem (int x){ return x; } struct test { static constexpr int a = idem (0); }; This doesn't: struct test { static constexpr int idem (int