public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/112339] New: ICE with namespaced attribute on function
@ 2023-11-01 18:37 s_gccbugzilla at nedprod dot com
  2023-11-01 18:45 ` [Bug sanitizer/112339] ICE with clang::no_sanitize and -fsanitize= pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: s_gccbugzilla at nedprod dot com @ 2023-11-01 18:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112339

            Bug ID: 112339
           Summary: ICE with namespaced attribute on function
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: s_gccbugzilla at nedprod dot com
  Target Milestone: ---

This, if compiled with trunk GCC or any recent major version of GCC:

```
[[clang::no_sanitize("bounds")]] void foo() 
{
}
```

... with options `-Wno-attributes=clang::no_sanitize -fsanitize=undefined`
produces ICE:

```
<source>: In function 'void foo()':
<source>:3:1: internal compiler error: in tree_to_uhwi, at tree.cc:6469
    3 | }
      | ^
0x266430e internal_error(char const*, ...)
        ???:0
0xb01c2c fancy_abort(char const*, int, char const*)
        ???:0
0xb97938 cp_genericize(tree_node*)
        ???:0
0xbe33ef finish_function(bool)
        ???:0
0xcebe49 c_parse_file()
        ???:0
0xe2ceb9 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```

Godbolt demo: https://godbolt.org/z/hs3xqeqn1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-16  8:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01 18:37 [Bug c++/112339] New: ICE with namespaced attribute on function s_gccbugzilla at nedprod dot com
2023-11-01 18:45 ` [Bug sanitizer/112339] ICE with clang::no_sanitize and -fsanitize= pinskia at gcc dot gnu.org
2023-11-02  9:45 ` [Bug c/112339] " jakub at gcc dot gnu.org
2023-11-08 22:32 ` s_gccbugzilla at nedprod dot com
2023-11-09  8:07 ` cvs-commit at gcc dot gnu.org
2023-12-05 16:32 ` cvs-commit at gcc dot gnu.org
2023-12-16  0:37 ` cvs-commit at gcc dot gnu.org
2023-12-16  8:46 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).