[Bug c++/49604] forward-declared enum's elements in class scope gets default access (class vs struct)

2016-02-01 Thread felix.abecassis at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49604

Felix Abecassis  changed:

   What|Removed |Added

 CC||felix.abecassis at gmail dot 
com

--- Comment #4 from Felix Abecassis  ---
Confirmed again with gcc 5.3.1 on Ubuntu 16.04.
I reused the same test case than Melissa.

[Bug c/59367] New: Syntax error with #pragma message before "else"

2013-12-02 Thread felix.abecassis at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59367

Bug ID: 59367
   Summary: Syntax error with #pragma message before "else"
   Product: gcc
   Version: 4.8.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: felix.abecassis at gmail dot com

Using #pragma message before "else" triggers a syntax error:
pragma_message.c: In function 'main':
pragma_message.c:4:9: note: #pragma message: foo
 #pragma message "foo"
 ^
pragma_message.c:5:5: error: 'else' without a previous 'if'
 else {}
 ^
See attached file for source.

Preprocessed .i file:
# 1 "pragma_message.c"
# 1 ""
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 30 "/usr/include/stdc-predef.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/predefs.h" 1 3 4
# 31 "/usr/include/stdc-predef.h" 2 3 4
# 1 "" 2
# 1 "pragma_message.c"
int main()
{
if (1) {}

# 4 "pragma_message.c"
#pragma message "foo"
# 4 "pragma_message.c"

else {}
}


[Bug c/59367] Syntax error with #pragma message before "else"

2013-12-02 Thread felix.abecassis at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59367

--- Comment #1 from Felix Abecassis  ---
Created attachment 31351
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31351&action=edit
Source file