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,
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
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
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
: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61993
--- Comment #2 from steveren ---
Ah, it is a dupe; sorry, I missed that one.
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