This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81299] [8 Regression] Spurious "set but not used" warning with constexpr variable


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-10
            Summary|Spurious "set but not used" |[8 Regression] Spurious
                   |warning with constexpr      |"set but not used" warning
                   |variable                    |with constexpr variable
     Ever confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Confirmed in gcc-7-branch. In trunk the testcase currently crashes the compiler
with "trying to capture ‘fun’ in instantiation of generic lambda". I think the
ICE is a Dup, however.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]