[Bug c++/56130] New: __attribute__((deprecated)) does not affect C++ reference

2013-01-28 Thread chen3feng at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56130



 Bug #: 56130

   Summary: __attribute__((deprecated)) does not affect C++

reference

Classification: Unclassified

   Product: gcc

   Version: 4.7.3

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: chen3f...@gmail.com





int g_nn;

int& g_n __attribute__((deprecated)) = g_nn;



int main()

{

g_n = 1;

}



Compile with -Wall

No any warning.


[Bug c++/56130] __attribute__((deprecated)) does not affect C++ reference

2013-01-28 Thread chen3feng at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56130



--- Comment #1 from chen3feng  2013-01-28 13:17:52 
UTC ---

Tested on gcc 4.1.2 4.5.3 4.6.3 4.7.2


[Bug preprocessor/99343] New: Suggest: -H option support output to file

2021-03-02 Thread chen3feng at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99343

Bug ID: 99343
   Summary: Suggest: -H option support output to file
   Product: gcc
   Version: 8.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: preprocessor
  Assignee: unassigned at gcc dot gnu.org
  Reporter: chen3feng at gmail dot com
  Target Milestone: ---

I use the `-H` option to analyze the header file dependency. but it is mixed
with other diagnostic messages, so I have to use an awk script to split them,
this solution is boring and error-prone.

I suggest adding a `-HF` option (similar to the relationship of -MM and -MF
option), which all output this information to a dedicated file.

I also suggest using `-HH` to output only non-system header files.

I'd like to contribute if this suggestion is accepted.

Thanks.