- Package:
- gcc
- Source:
- gcc-defaults
- Description:
- GNU C compiler
- Submitter:
- Anthony DeRobertis
- Date:
- 2025-06-22 07:23:02 UTC
- Severity:
- wishlist
- Tags:
Accidentally leaving the close brace off of a block in e.g., a header file will often result in errors in files that include it, without any indication of what is wrong. For example, leaving a namespace open will usually just give a parse error at the end of the including file. I'd appreciate it if a warning were issued at the end of a file if there are still any blocks open. I realize that leaving a block open through a file ending is not a violation of the ISO standard's letter or spirit; however, I believe it is usually a mistake, and one that is otherwise hard to track down. A compiler warning would make tracking it down much easier, and is unlikely to give any false alarms. - -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux bohr 2.4.16 #2 SMP Wed Nov 28 05:25:00 EST 2001 i686 Locale: LANG=en_US, LC_CTYPE=en_US Versions of packages g++-3.0 depends on: ii gcc-3.0 1:3.0.2-3 The GNU C compiler. ii gcc-3.0-base 1:3.0.2-3 The GNU Compiler Collection (base ii libc6 2.2.4-5 GNU C Library: Shared libraries an ii libstdc++3-dev 1:3.0.2-3 The GNU stdc++ library version 3 ( iD8DBQE8Ci7S5lsmI6uA7bQRAvfkAJ42N2/3M+lpiPmqFzK9xPN8XQSaIgCePy3A nnESs3UUazVoA2AcfpUK72I= =3kIg -----END PGP SIGNATURE-----
Thank you very much for your problem report. It has the internal identification `other/9071'. The individual assigned to look at your report is: unassigned.
# submitted Debian report #122103 to gcc-gnats as PR other/9071 # http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=other/9071&database=gcc forwarded 122103 gcc-gnats@gcc.gnu.org retitle 122103 [PR other/9071] Warning for blocks not closed in same file as opened in thanks
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071------- Additional Comments From dhazeghi@yahoo.com 2003-05-26 21:49 ------- Hello, can you provide a small testcase for this problem? And if possible verify that this is still the case in gcc 3.3? Thanks, Dara------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071 pinskia@physics.uc.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING------- Additional Comments From pinskia@physics.uc.edu 2003-05-26 21:52 ------- See Dara's question.------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071 pinskia@physics.uc.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2003-05-28 02:41:14 date| |------- Additional Comments From pinskia@physics.uc.edu 2003-05-28 02:41 ------- Actually is very easy to show: //header.h struct A { int i; //forgot to close the struct. //file.c #include "header.h" int f(struct A *a) { a->i=0; } gcc file.c file.c:4: error: field `f' declared as a function file.c:4: warning: no semicolon at end of struct or union file.c:4: error: parse error before '{' token------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071 pinskia at physics dot uc dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Component|other |preprocessor Keywords| |diagnostic Last reconfirmed|2003-05-28 02:41:14 |2003-08-05 15:28:46 date| |------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|preprocessor |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |preprocessor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Debian GCC maintainers <debian-gcc@lists.debian.org> If you wish to continue to submit further information on your problem, please send it to 122103@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database) ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Debian GCC maintainers <debian-gcc@lists.debian.org> If you wish to continue to submit further information on your problem, please send it to 122103@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database) ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Debian GCC maintainers <debian-gcc@lists.debian.org> If you wish to continue to submit further information on your problem, please send it to 122103@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database) ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Debian GCC maintainers <debian-gcc@lists.debian.org> If you wish to continue to submit further information on your problem, please send it to 122103@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database) ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Debian GCC maintainers <debian-gcc@lists.debian.org> If you wish to continue to submit further information on your problem, please send it to 122103@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database) ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter.
*你好!* 牛奶是一种广泛应用于日常饮食的营养饮料。 但对于需要减肥或控制脂肪摄入的人,可选择脱脂牛奶或低脂乳制品;对于儿童、老人和身体不好的人,应选择营养丰富的全脂牛奶或蛋白质、钙含量高的饮料。 不过,有3种牛奶你应该尽量少喝,因为它对你的健康没有好处:保质期牛奶、植物奶、低脂牛奶。 这些信息十分珍贵,请务必查看完整内容! https://tinyurl.com/niu-nai-zhong-de-ying-yang 祝你和你的家人好运!--- 真理不惧时间,光明终将到来